summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC/inlineasm-copy.ll
blob: c0a397982adf9498db69e1978cec8f23080d44fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llvm-as < %s | llc -march=ppc32 | not grep mr

define i32 @test(i32 %Y, i32 %X) {
entry:
        %tmp = tail call i32 asm "foo $0", "=r"( )              ; <i32> [#uses=1]
        ret i32 %tmp
}

define i32 @test2(i32 %Y, i32 %X) {
entry:
        %tmp1 = tail call i32 asm "foo $0, $1", "=r,r"( i32 %X )                ; <i32> [#uses=1]
        ret i32 %tmp1
}

OpenPOWER on IntegriCloud