xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/split-vector-bitcast.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 -mattr=-sse2,+sse | grep addps
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; PR10497 + another isel issue with sse2 disabled
4*9880d681SAndroid Build Coastguard Worker; (This is primarily checking that this construct doesn't crash.)
5*9880d681SAndroid Build Coastguard Workerdefine void @a(<2 x float>* %a, <2 x i32>* %b) {
6*9880d681SAndroid Build Coastguard Worker  %cc = load <2 x float>, <2 x float>* %a
7*9880d681SAndroid Build Coastguard Worker  %c = fadd <2 x float> %cc, %cc
8*9880d681SAndroid Build Coastguard Worker  %dd = bitcast <2 x float> %c to <2 x i32>
9*9880d681SAndroid Build Coastguard Worker  %d = add <2 x i32> %dd, %dd
10*9880d681SAndroid Build Coastguard Worker  store <2 x i32> %d, <2 x i32>* %b
11*9880d681SAndroid Build Coastguard Worker  ret void
12*9880d681SAndroid Build Coastguard Worker}
13