Testcases for msasm bit (llvm-gcc 84062).
authorDale Johannesen <dalej@apple.com>
Wed, 14 Oct 2009 00:10:54 +0000 (00:10 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 14 Oct 2009 00:10:54 +0000 (00:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84063 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC++/msasm.cpp [new file with mode: 0644]
test/FrontendC/msasm.c [new file with mode: 0644]

diff --git a/test/FrontendC++/msasm.cpp b/test/FrontendC++/msasm.cpp
new file mode 100644 (file)
index 0000000..18375bd
--- /dev/null
@@ -0,0 +1,23 @@
+// RUN: %llvmgcc %s -fasm-blocks -S -o - | FileCheck %s
+// Complicated expression as jump target
+// XFAIL: *
+// XTARGET: x86,i386,i686
+
+void Method3()
+{
+// CHECK: Method3
+// CHECK-NOT: msasm
+    asm("foo:");
+// CHECK: return
+}
+
+void Method4()
+{
+// CHECK: Method4
+// CHECK: msasm
+  asm {
+    bar:
+  }
+// CHECK: return
+}
+
diff --git a/test/FrontendC/msasm.c b/test/FrontendC/msasm.c
new file mode 100644 (file)
index 0000000..18375bd
--- /dev/null
@@ -0,0 +1,23 @@
+// RUN: %llvmgcc %s -fasm-blocks -S -o - | FileCheck %s
+// Complicated expression as jump target
+// XFAIL: *
+// XTARGET: x86,i386,i686
+
+void Method3()
+{
+// CHECK: Method3
+// CHECK-NOT: msasm
+    asm("foo:");
+// CHECK: return
+}
+
+void Method4()
+{
+// CHECK: Method4
+// CHECK: msasm
+  asm {
+    bar:
+  }
+// CHECK: return
+}
+