1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-unknown | FileCheck %s --check-prefix=X86
3 ; RUN: llc < %s -mtriple=i686-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X86-SSE
4 ; RUN: llc < %s -mtriple=x86_64-unknown | FileCheck %s --check-prefix=X64
6 define i1 @foo(i64 %a) {
9 ; X86-NEXT: flds {{[0-9]+}}(%esp)
10 ; X86-NEXT: flds {{[0-9]+}}(%esp)
12 ; X86-NEXT: fnstsw %ax
13 ; X86-NEXT: # kill: def $ah killed $ah killed $ax
20 ; X86-SSE-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
21 ; X86-SSE-NEXT: movaps %xmm0, %xmm1
22 ; X86-SSE-NEXT: shufps {{.*#+}} xmm1 = xmm1[1,1],xmm0[1,1]
23 ; X86-SSE-NEXT: ucomiss %xmm1, %xmm0
24 ; X86-SSE-NEXT: setp %al
29 ; X64-NEXT: movq %rdi, %xmm0
30 ; X64-NEXT: pshufd {{.*#+}} xmm1 = xmm0[1,1,1,1]
31 ; X64-NEXT: ucomiss %xmm1, %xmm0
34 %t = bitcast i64 %a to <2 x float>
35 %r = extractelement <2 x float> %t, i32 0
36 %s = extractelement <2 x float> %t, i32 1
37 %b = fcmp uno float %r, %s