zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / test / CodeGen / X86 / widen_cast-5.ll
blobd1d7fecbd275d63b3405a2e7e5b5becf877f1532
1 ; RUN: llc < %s -march=x86 -mattr=+sse42 -disable-mmx | FileCheck %s
2 ; CHECK: movl
3 ; CHECK: movd
5 ; bitcast a i64 to v2i32
7 define void @convert(<2 x i32>* %dst.addr, i64 %src) nounwind {
8 entry:
9         %conv = bitcast i64 %src to <2 x i32>
10         %xor = xor <2 x i32> %conv, < i32 255, i32 32767 >
11         store <2 x i32> %xor, <2 x i32>* %dst.addr
12         ret void