xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/2009-06-05-sitofpCrash.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 -mattr=+sse
2*9880d681SAndroid Build Coastguard Worker; PR2598
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdefine <2 x float> @a(<2 x i32> %i) nounwind {
5*9880d681SAndroid Build Coastguard Worker  %r = sitofp <2 x i32> %i to <2 x float>
6*9880d681SAndroid Build Coastguard Worker  ret <2 x float> %r
7*9880d681SAndroid Build Coastguard Worker}
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine <2 x i32> @b(<2 x float> %i) nounwind {
10*9880d681SAndroid Build Coastguard Worker  %r = fptosi <2 x float> %i to <2 x i32>
11*9880d681SAndroid Build Coastguard Worker  ret <2 x i32> %r
12*9880d681SAndroid Build Coastguard Worker}
13*9880d681SAndroid Build Coastguard Worker
14