1 ; RUN: llc < %s -march=xcore | FileCheck %s
4 define i32 @f1() nounwind {
6 %asmtmp = tail call i32 asm sideeffect "foo $0", "=r"() nounwind
12 define void @f2() nounwind {
14 tail call void asm sideeffect "foo $0", "i"(i32 5) nounwind
20 define void @f3() nounwind {
22 tail call void asm sideeffect "foo ${0:c}", "i"(i32 42) nounwind
28 define void @f4() nounwind {
30 tail call void asm sideeffect "foo ${0:n}", "i"(i32 99) nounwind
34 @x = external global i32
35 @y = external global i32, section ".cp.rodata"
38 ; CHECK: ldw r0, dp[x]
40 define i32 @f5() nounwind {
42 %asmtmp = call i32 asm "ldw $0, $1", "=r,*m"(ptr elementtype(i32) @x) nounwind
47 ; CHECK: ldw r0, cp[y]
49 define i32 @f6() nounwind {
51 %asmtmp = call i32 asm "ldw $0, $1", "=r,*m"(ptr elementtype(i32) @y) nounwind