aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-07-09 23:54:51 +0000
committerBob Wilson <bob.wilson@apple.com>2009-07-09 23:54:51 +0000
commitc675135c7e8c69bc61a95ebedd0741dc8354f649 (patch)
tree3275661f097d63c48541bc698b9e8efda0725c92 /test
parent6601fcdc38a21a39ac124f2bd8794846519b6455 (diff)
downloadexternal_llvm-c675135c7e8c69bc61a95ebedd0741dc8354f649.zip
external_llvm-c675135c7e8c69bc61a95ebedd0741dc8354f649.tar.gz
external_llvm-c675135c7e8c69bc61a95ebedd0741dc8354f649.tar.bz2
Handle 'a' modifier on inline assembly operands.
This is part of the fix for pr4521. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75201 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM/2009-07-09-asm-p-constraint.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/2009-07-09-asm-p-constraint.ll b/test/CodeGen/ARM/2009-07-09-asm-p-constraint.ll
new file mode 100644
index 0000000..ea502cd
--- /dev/null
+++ b/test/CodeGen/ARM/2009-07-09-asm-p-constraint.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=arm -mattr=+v6
+
+define void @test(i8* %x) nounwind {
+entry:
+ call void asm sideeffect "pld\09${0:a}", "r,~{cc}"(i8* %x) nounwind
+ ret void
+}