aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/arm-asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/arm-asm.c')
-rw-r--r--test/CodeGen/arm-asm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/arm-asm.c b/test/CodeGen/arm-asm.c
new file mode 100644
index 000000000000..9b1082a198e3
--- /dev/null
+++ b/test/CodeGen/arm-asm.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -triple thumb %s -emit-llvm -o - | FileCheck %s
+int t1() {
+ static float k = 1.0f;
+ // CHECK: flds s15
+ __asm__ volatile ("flds s15, %[k] \n" :: [k] "Uv" (k) : "s15");
+ return 0;
+}