Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / CodeGen / PowerPC / inlineasm-copy.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep mr
3
4 int %test(int %Y, int %X) {
5 entry:
6         %tmp = tail call int asm "foo $0", "=r"( )              ; <int> [#uses=1]
7         ret int %tmp
8 }
9
10 int %test2(int %Y, int %X) {
11 entry:
12         %tmp1 = tail call int asm "foo $0, $1", "=r,r"( int %X )                ; <int> [#uses=1]
13         ret int %tmp1
14 }