aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-10-14 00:10:54 +0000
committerDale Johannesen <dalej@apple.com>2009-10-14 00:10:54 +0000
commit0ccfc4c0581468832090464b92eba2085e9f5003 (patch)
tree2994e6edf13f4f6e66b4f79770642cfeb58bd7d2 /test
parent1b1764b3f7edd26a90991993255536dd7417a5c6 (diff)
downloadexternal_llvm-0ccfc4c0581468832090464b92eba2085e9f5003.zip
external_llvm-0ccfc4c0581468832090464b92eba2085e9f5003.tar.gz
external_llvm-0ccfc4c0581468832090464b92eba2085e9f5003.tar.bz2
Testcases for msasm bit (llvm-gcc 84062).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/FrontendC++/msasm.cpp23
-rw-r--r--test/FrontendC/msasm.c23
2 files changed, 46 insertions, 0 deletions
diff --git a/test/FrontendC++/msasm.cpp b/test/FrontendC++/msasm.cpp
new file mode 100644
index 0000000..18375bd
--- /dev/null
+++ b/test/FrontendC++/msasm.cpp
@@ -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
index 0000000..18375bd
--- /dev/null
+++ b/test/FrontendC/msasm.c
@@ -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
+}
+