aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-06-03 20:56:31 +0000
committerEric Christopher <echristo@apple.com>2011-06-03 20:56:31 +0000
commitce8671c6127aafc819137f2e4dd067567187129b (patch)
treeaef0ff656b9999f45e0eecd22317ebe3ac8070dd
parentce1ecf59c80db0ff922e599e4334258f9fa65783 (diff)
Testcase for llvm-gcc commit r132591.
Part of rdar://9037836 and rdar://9119939 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132592 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/FrontendC/inline-asm-multichar.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FrontendC/inline-asm-multichar.c b/test/FrontendC/inline-asm-multichar.c
new file mode 100644
index 0000000000..7e2eeef838
--- /dev/null
+++ b/test/FrontendC/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;
+}