blob: d691685f1dddabe7adea354e1efc2616ffb7a0cd [file] [log] [blame]
Jim Grosbachb6535c32014-07-18 00:40:56 +00001; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
2
3define <4 x float> @foo(<4 x float> %val, <4 x float> %test) nounwind {
4; CHECK-LABEL: LCPI0_0
5; CHECK-NEXT: .long 1065353216 ## float 1.000000e+00
6; CHECK-NEXT: .long 1065353216 ## float 1.000000e+00
7; CHECK-NEXT: .long 1065353216 ## float 1.000000e+00
8; CHECK-NEXT: .long 1065353216 ## float 1.000000e+00
9; CHECK-LABEL: foo:
10; CHECK: cmpeqps %xmm1, %xmm0
11; CHECK-NEXT: andps LCPI0_0(%rip), %xmm0
12; CHECK-NEXT: retq
13
14 %cmp = fcmp oeq <4 x float> %val, %test
15 %ext = zext <4 x i1> %cmp to <4 x i32>
16 %result = sitofp <4 x i32> %ext to <4 x float>
17 ret <4 x float> %result
18}