blob: e9438492a0fb3345abd59af1e69e5ac85fe1a8d7 [file] [log] [blame]
Chris Lattnerdc9c82e2009-02-20 07:10:11 +00001; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah
Mon P Wang6978d7c2008-12-15 21:44:00 +00002
3; Legalization example that requires splitting a large vector into smaller pieces.
4
5define void @update(<8 x i32> %val, <8 x i32>* %dst) nounwind {
6entry:
7 %shl = shl <8 x i32> %val, < i32 2, i32 2, i32 2, i32 2, i32 4, i32 4, i32 4, i32 4 >
8 %shr = ashr <8 x i32> %val, < i32 2, i32 2, i32 2, i32 2, i32 4, i32 4, i32 4, i32 4 >
9 store <8 x i32> %shr, <8 x i32>* %dst
10 ret void
11}