OSDN Git Service

Testcase for llvm-gcc commit r132591.
authorEric Christopher <echristo@apple.com>
Fri, 3 Jun 2011 20:56:31 +0000 (20:56 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 3 Jun 2011 20:56:31 +0000 (20:56 +0000)
Part of rdar://9037836 and rdar://9119939

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132592 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC/inline-asm-multichar.c [new file with mode: 0644]

diff --git a/test/FrontendC/inline-asm-multichar.c b/test/FrontendC/inline-asm-multichar.c
new file mode 100644 (file)
index 0000000..7e2eeef
--- /dev/null
@@ -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;
+}