xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/widen_cast-5.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 -mattr=+sse4.2 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; CHECK: movl
3*9880d681SAndroid Build Coastguard Worker; CHECK: movq
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; bitcast a i64 to v2i32
6*9880d681SAndroid Build Coastguard Workerdefine void @convert(<2 x i32>* %dst.addr, i64 %src) nounwind {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker	%conv = bitcast i64 %src to <2 x i32>
9*9880d681SAndroid Build Coastguard Worker	%xor = xor <2 x i32> %conv, < i32 255, i32 32767 >
10*9880d681SAndroid Build Coastguard Worker	store <2 x i32> %xor, <2 x i32>* %dst.addr
11*9880d681SAndroid Build Coastguard Worker	ret void
12*9880d681SAndroid Build Coastguard Worker}
13