summaryrefslogtreecommitdiff
path: root/test/FrontendC/ARM/inline-asm-multichar.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/ARM/inline-asm-multichar.c')
-rw-r--r--test/FrontendC/ARM/inline-asm-multichar.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FrontendC/ARM/inline-asm-multichar.c b/test/FrontendC/ARM/inline-asm-multichar.c
new file mode 100644
index 0000000000..7e2eeef838
--- /dev/null
+++ b/test/FrontendC/ARM/inline-asm-multichar.c
@@ -0,0 +1,11 @@
+// RUN: %llvmgcc -S -march=armv7a %s
+
+// XFAIL: *
+// XTARGET: arm
+
+int t1() {
+ static float k = 1.0f;
+CHECK: call void asm sideeffect "flds s15, $0 \0A", "*^Uv,~{s15}"
+ __asm__ volatile ("flds s15, %[k] \n" :: [k] "Uv,m" (k) : "s15");
+ return 0;
+}