2016-08-04 02:17:35 +08:00
|
|
|
; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "foo r3, r4"
|
|
|
|
; RUN: llc -verify-machineinstrs < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "bari r3, 47"
|
2007-04-25 06:49:57 +08:00
|
|
|
|
|
|
|
; PR1351
|
|
|
|
|
2008-04-27 08:37:18 +08:00
|
|
|
define i32 @test1(i32 %Y, i32 %X) nounwind {
|
2007-04-25 06:49:57 +08:00
|
|
|
%tmp1 = tail call i32 asm "foo${1:I} $0, $1", "=r,rI"( i32 %X )
|
|
|
|
ret i32 %tmp1
|
|
|
|
}
|
|
|
|
|
2008-04-27 08:37:18 +08:00
|
|
|
define i32 @test2(i32 %Y, i32 %X) nounwind {
|
2007-04-25 06:49:57 +08:00
|
|
|
%tmp1 = tail call i32 asm "bar${1:I} $0, $1", "=r,rI"( i32 47 )
|
|
|
|
ret i32 %tmp1
|
|
|
|
}
|