| ; RUN: llc < %s -march=xcore | FileCheck %s |
| define i32 @f1() nounwind { |
| %asmtmp = tail call i32 asm sideeffect "foo $0", "=r"() nounwind |
| define void @f2() nounwind { |
| tail call void asm sideeffect "foo $0", "i"(i32 5) nounwind |
| define void @f3() nounwind { |
| tail call void asm sideeffect "foo ${0:c}", "i"(i32 42) nounwind |
| define void @f4() nounwind { |
| tail call void asm sideeffect "foo ${0:n}", "i"(i32 99) nounwind |
| @y = external global i32, section ".cp.rodata" |
| define i32 @f5() nounwind { |
| %asmtmp = call i32 asm "ldw $0, $1", "=r,*m"(i32* @x) nounwind |
| define i32 @f6() nounwind { |
| %asmtmp = call i32 asm "ldw $0, $1", "=r,*m"(i32* @y) nounwind |