20 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- -mcpu=yonah | FileCheck %s3 4; This should not need to materialize 0.0 to evaluate the condition.5 6define i32 @test(double %X) nounwind {7; CHECK-LABEL: test:8; CHECK: # %bb.0: # %entry9; CHECK-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero10; CHECK-NEXT: xorl %eax, %eax11; CHECK-NEXT: ucomisd %xmm0, %xmm012; CHECK-NEXT: setp %al13; CHECK-NEXT: retl14entry:15 %tmp6 = fcmp uno double %X, 0.000000e+00 ; <i1> [#uses=1]16 %tmp67 = zext i1 %tmp6 to i32 ; <i32> [#uses=1]17 ret i32 %tmp6718}19 20