summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/arm-inline-asm.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-29 21:20:35 +0000
committerEric Christopher <echristo@apple.com>2011-07-29 21:20:35 +0000
commitb081ba651cd0f5048e30ad4e938d9e402abfc142 (patch)
treea83e4c6ecf5044b42ef68674a14878619067d57f /clang/test/CodeGen/arm-inline-asm.c
parentaa5030066fb56c3ce918bd7cdd2ecf2d552fc2b2 (diff)
downloadbcm5719-llvm-b081ba651cd0f5048e30ad4e938d9e402abfc142.tar.gz
bcm5719-llvm-b081ba651cd0f5048e30ad4e938d9e402abfc142.zip
Add support for the 'Q' arm memory constraint.
Fixes rdar://9866494 llvm-svn: 136524
Diffstat (limited to 'clang/test/CodeGen/arm-inline-asm.c')
-rw-r--r--clang/test/CodeGen/arm-inline-asm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/arm-inline-asm.c b/clang/test/CodeGen/arm-inline-asm.c
new file mode 100644
index 00000000000..0152b050fd7
--- /dev/null
+++ b/clang/test/CodeGen/arm-inline-asm.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s
+
+void t1 (void *f, int g) {
+ // CHECK: call void asm "str $1, $0", "=*Q,r"
+ asm("str %1, %0" : "=Q"(f) : "r"(g));
+}
OpenPOWER on IntegriCloud