xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/2007-04-24-InlineAsm-I-Modifier.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "foo r3, r4"
2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 -no-integrated-as | grep "bari r3, 47"
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; PR1351
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine i32 @test1(i32 %Y, i32 %X) nounwind {
7*9880d681SAndroid Build Coastguard Worker	%tmp1 = tail call i32 asm "foo${1:I} $0, $1", "=r,rI"( i32 %X )
8*9880d681SAndroid Build Coastguard Worker	ret i32 %tmp1
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerdefine i32 @test2(i32 %Y, i32 %X) nounwind {
12*9880d681SAndroid Build Coastguard Worker	%tmp1 = tail call i32 asm "bar${1:I} $0, $1", "=r,rI"( i32 47 )
13*9880d681SAndroid Build Coastguard Worker	ret i32 %tmp1
14*9880d681SAndroid Build Coastguard Worker}
15