blob: 2a03d5819b835df384d27fd7b55df6285ffa521d [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 -mcpu=g5 -o %t
Reid Spencer6e87ec42007-04-16 17:36:08 +00002; RUN: grep vrlw %t
3; RUN: not grep spr %t
4; RUN: not grep vrsave %t
Chris Lattnerefe2b3f2006-04-17 21:48:03 +00005
Tanya Lattnera99d8b52008-02-19 08:07:33 +00006define <4 x i32> @test_rol() {
7 ret <4 x i32> < i32 -11534337, i32 -11534337, i32 -11534337, i32 -11534337 >
Chris Lattnerefe2b3f2006-04-17 21:48:03 +00008}
9
Tanya Lattnera99d8b52008-02-19 08:07:33 +000010define <4 x i32> @test_arg(<4 x i32> %A, <4 x i32> %B) {
11 %C = add <4 x i32> %A, %B ; <<4 x i32>> [#uses=1]
12 ret <4 x i32> %C
Chris Lattnerf4d08dd2006-05-16 18:23:55 +000013}
14