1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i686-unknown -mattr=+avx | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+avx | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; Check that constant integers are correctly being truncated before float conversion 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Workerdefine <4 x float> @test1() { 7*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test1 8*9880d681SAndroid Build Coastguard Worker; CHECK: movaps {{.*#+}} xmm0 = [-1.000000e+00,0.000000e+00,-1.000000e+00,0.000000e+00] 9*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: ret 10*9880d681SAndroid Build Coastguard Worker %1 = trunc <4 x i3> <i3 -1, i3 -22, i3 7, i3 8> to <4 x i1> 11*9880d681SAndroid Build Coastguard Worker %2 = sitofp <4 x i1> %1 to <4 x float> 12*9880d681SAndroid Build Coastguard Worker ret <4 x float> %2 13*9880d681SAndroid Build Coastguard Worker} 14