summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/arm-asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/arm-asm.c')
-rw-r--r--clang/test/CodeGen/arm-asm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/arm-asm.c b/clang/test/CodeGen/arm-asm.c
new file mode 100644
index 0000000..9b1082a
--- /dev/null
+++ b/clang/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;
+}