[llvm-commits] [llvm] r84063 - in /llvm/trunk/test: FrontendC++/msasm.cpp FrontendC/msasm.c
Dale Johannesen
dalej at apple.com
Tue Oct 13 17:10:55 PDT 2009
Author: johannes
Date: Tue Oct 13 19:10:54 2009
New Revision: 84063
URL: http://llvm.org/viewvc/llvm-project?rev=84063&view=rev
Log:
Testcases for msasm bit (llvm-gcc 84062).
Added:
llvm/trunk/test/FrontendC++/msasm.cpp
llvm/trunk/test/FrontendC/msasm.c
Added: llvm/trunk/test/FrontendC++/msasm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/msasm.cpp?rev=84063&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC++/msasm.cpp (added)
+++ llvm/trunk/test/FrontendC++/msasm.cpp Tue Oct 13 19:10:54 2009
@@ -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
+}
+
Added: llvm/trunk/test/FrontendC/msasm.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/msasm.c?rev=84063&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/msasm.c (added)
+++ llvm/trunk/test/FrontendC/msasm.c Tue Oct 13 19:10:54 2009
@@ -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
+}
+
More information about the llvm-commits
mailing list