blob: 8895cdf8aff63036ccc246ba1161656742e731ee [file] [log] [blame]
Mon P Wang6978d7c2008-12-15 21:44:00 +00001; RUN: llvm-as < %s | llc
2
3; Legalization test that requires scalarizing a vector.
4
5define void @update(<1 x i32> %val, <1 x i32>* %dst) nounwind {
6entry:
7 %shl = shl <1 x i32> %val, < i32 2>
8 %shr = ashr <1 x i32> %val, < i32 4>
9 store <1 x i32> %shr, <1 x i32>* %dst
10 ret void
11}