1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 | FileCheck %s
4 ; Check that the booleans are converted using zext and not via sext.
5 ; 0x1 means that we only look at the first bit.
7 define void @ui_to_fp_conv(ptr nocapture %aFOO, ptr nocapture %RET) nounwind {
8 ; CHECK-LABEL: ui_to_fp_conv:
9 ; CHECK: # %bb.0: # %allocas
10 ; CHECK-NEXT: movsd {{.*#+}} xmm0 = [1.0E+0,1.0E+0,0.0E+0,0.0E+0]
11 ; CHECK-NEXT: xorps %xmm1, %xmm1
12 ; CHECK-NEXT: movups %xmm1, 16(%rsi)
13 ; CHECK-NEXT: movups %xmm0, (%rsi)
16 %bincmp = fcmp olt <8 x float> <float 1.000000e+00, float 1.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00> , <float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00>
17 %bool2float = uitofp <8 x i1> %bincmp to <8 x float>
18 store <8 x float> %bool2float, ptr %RET, align 4