2015-11-24 05:33:58 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2015-11-15 04:42:01 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 | FileCheck %s
|
2011-10-22 01:35:19 +08:00
|
|
|
|
|
|
|
; Check that the booleans are converted using zext and not via sext.
|
|
|
|
; 0x1 means that we only look at the first bit.
|
|
|
|
|
|
|
|
define void @ui_to_fp_conv(<8 x float> * nocapture %aFOO, <8 x float>* nocapture %RET) nounwind {
|
2015-11-15 04:42:01 +08:00
|
|
|
; CHECK-LABEL: ui_to_fp_conv:
|
|
|
|
; CHECK: # BB#0: # %allocas
|
2015-11-19 05:17:19 +08:00
|
|
|
; CHECK-NEXT: movaps {{.*#+}} xmm0 = [1.000000e+00,1.000000e+00,0.000000e+00,0.000000e+00]
|
|
|
|
; CHECK-NEXT: xorps %xmm1, %xmm1
|
|
|
|
; CHECK-NEXT: movups %xmm1, 16(%rsi)
|
|
|
|
; CHECK-NEXT: movups %xmm0, (%rsi)
|
2015-11-15 04:42:01 +08:00
|
|
|
; CHECK-NEXT: retq
|
2011-10-22 01:35:19 +08:00
|
|
|
allocas:
|
|
|
|
%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>
|
|
|
|
%bool2float = uitofp <8 x i1> %bincmp to <8 x float>
|
|
|
|
store <8 x float> %bool2float, <8 x float>* %RET, align 4
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|