Re-implement the main strength-reduction portion of LoopStrengthReduction.
[oota-llvm.git] / test / CodeGen / X86 / widen_cast-5.ll
1 ; RUN: llc < %s -march=x86 -mattr=+sse42 -disable-mmx | FileCheck %s
2 ; CHECK: movl
3 ; CHECK: movd
4
5 ; bitcast a i64 to v2i32
6
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
13 }