blob: 2a03d5819b835df384d27fd7b55df6285ffa521d [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32 -mcpu=g5 -o %t
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; RUN: grep vrlw %t
3; RUN: not grep spr %t
4; RUN: not grep vrsave %t
5
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +00006define <4 x i32> @test_rol() {
7 ret <4 x i32> < i32 -11534337, i32 -11534337, i32 -11534337, i32 -11534337 >
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008}
9
Tanya Lattner5ebaf3b2008-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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013}
14