blob: 0f8c2b896e2b55b1b5b522a79d37cdd903bdc11f [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -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}