[PowerPC] Recommit r314244 with refactoring and off by default
[llvm-core.git] / test / CodeGen / PowerPC / 2007-04-24-InlineAsm-I-Modifier.ll
blobad34477384a19326f36b6a6d0e817506355ee556
1 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "foo r3, r4"
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "bari r3, 47"
4 ; PR1351
6 define i32 @test1(i32 %Y, i32 %X) nounwind {
7         %tmp1 = tail call i32 asm "foo${1:I} $0, $1", "=r,rI"( i32 %X )
8         ret i32 %tmp1
11 define i32 @test2(i32 %Y, i32 %X) nounwind {
12         %tmp1 = tail call i32 asm "bar${1:I} $0, $1", "=r,rI"( i32 47 )
13         ret i32 %tmp1