blob: 06769f6bf0f8bc60c15d5e991f242015040734dc [file] [log] [blame]
Tanya Lattner5ebaf3b2008-02-19 08:07:33 +00001; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 -o %t -f
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