1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/CodeGen/PowerPC/inlineasm-copy.ll

15 lines
368 B
LLVM
Raw Normal View History

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