2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=ppc32 | not grep mr
|
2006-11-02 01:45:28 +00:00
|
|
|
|
2008-02-19 08:07:33 +00:00
|
|
|
define i32 @test(i32 %Y, i32 %X) {
|
2006-11-02 01:45:28 +00:00
|
|
|
entry:
|
2008-02-19 08:07:33 +00:00
|
|
|
%tmp = tail call i32 asm "foo $0", "=r"( ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %tmp
|
2006-11-02 01:45:28 +00:00
|
|
|
}
|
|
|
|
|
2008-02-19 08:07:33 +00:00
|
|
|
define i32 @test2(i32 %Y, i32 %X) {
|
2006-11-02 01:45:28 +00:00
|
|
|
entry:
|
2008-02-19 08:07:33 +00:00
|
|
|
%tmp1 = tail call i32 asm "foo $0, $1", "=r,r"( i32 %X ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %tmp1
|
2006-11-02 01:45:28 +00:00
|
|
|
}
|
2008-02-19 08:07:33 +00:00
|
|
|
|