mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
abfb9e7ee2
Summary: Switch to FileCheck where possible. Adjust tests so they can be easily regenerated by update scripts. Reviewers: craig.topper, spatel, RKSimon Reviewed By: spatel Subscribers: MatzeB, qcolombet, arphaman, jfb, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D71211
20 lines
608 B
LLVM
20 lines
608 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=i686-- -mcpu=yonah | FileCheck %s
|
|
|
|
; This should not need to materialize 0.0 to evaluate the condition.
|
|
|
|
define i32 @test(double %X) nounwind {
|
|
; CHECK-LABEL: test:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
|
|
; CHECK-NEXT: xorl %eax, %eax
|
|
; CHECK-NEXT: ucomisd %xmm0, %xmm0
|
|
; CHECK-NEXT: setp %al
|
|
; CHECK-NEXT: retl
|
|
entry:
|
|
%tmp6 = fcmp uno double %X, 0.000000e+00 ; <i1> [#uses=1]
|
|
%tmp67 = zext i1 %tmp6 to i32 ; <i32> [#uses=1]
|
|
ret i32 %tmp67
|
|
}
|
|
|