[llvm-commits] [llvm] r84796 - in /llvm/trunk/test: Assembler/alignstack.ll Assembler/msasm.ll FrontendC++/alignstack.cpp FrontendC++/msasm.cpp FrontendC/alignstack.c FrontendC/msasm.c

Dale Johannesen dalej at apple.com
Wed Oct 21 16:29:12 PDT 2009


Author: johannes
Date: Wed Oct 21 18:29:12 2009
New Revision: 84796

URL: http://llvm.org/viewvc/llvm-project?rev=84796&view=rev
Log:
Adjust testcases for msasm -> alignstack.


Added:
    llvm/trunk/test/Assembler/alignstack.ll
    llvm/trunk/test/FrontendC++/alignstack.cpp
    llvm/trunk/test/FrontendC/alignstack.c
Removed:
    llvm/trunk/test/Assembler/msasm.ll
    llvm/trunk/test/FrontendC++/msasm.cpp
    llvm/trunk/test/FrontendC/msasm.c

Added: llvm/trunk/test/Assembler/alignstack.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/alignstack.ll?rev=84796&view=auto

==============================================================================
--- llvm/trunk/test/Assembler/alignstack.ll (added)
+++ llvm/trunk/test/Assembler/alignstack.ll Wed Oct 21 18:29:12 2009
@@ -0,0 +1,36 @@
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
+target triple = "i386-apple-darwin10.0"
+
+define void @test1() nounwind {
+; CHECK: test1
+; CHECK: sideeffect
+; CHECK-NOT: alignstack
+	tail call void asm sideeffect "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
+	ret void
+; CHECK: ret
+}
+define void @test2() nounwind {
+; CHECK: test2
+; CHECK: sideeffect
+; CHECK: alignstack
+	tail call void asm sideeffect alignstack "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
+	ret void
+; CHECK: ret
+}
+define void @test3() nounwind {
+; CHECK: test3
+; CHECK-NOT: sideeffect
+; CHECK: alignstack
+	tail call void asm alignstack "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
+	ret void
+; CHECK: ret
+}
+define void @test4() nounwind {
+; CHECK: test4
+; CHECK-NOT: sideeffect
+; CHECK-NOT: alignstack
+	tail call void asm  "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
+	ret void
+; CHECK: ret
+}

Removed: llvm/trunk/test/Assembler/msasm.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/msasm.ll?rev=84795&view=auto

==============================================================================
--- llvm/trunk/test/Assembler/msasm.ll (original)
+++ llvm/trunk/test/Assembler/msasm.ll (removed)
@@ -1,36 +0,0 @@
-; RUN: llvm-as < %s | llvm-dis | FileCheck %s
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
-target triple = "i386-apple-darwin10.0"
-
-define void @test1() nounwind {
-; CHECK: test1
-; CHECK: sideeffect
-; CHECK-NOT: msasm
-	tail call void asm sideeffect "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
-	ret void
-; CHECK: ret
-}
-define void @test2() nounwind {
-; CHECK: test2
-; CHECK: sideeffect
-; CHECK: msasm
-	tail call void asm sideeffect msasm "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
-	ret void
-; CHECK: ret
-}
-define void @test3() nounwind {
-; CHECK: test3
-; CHECK-NOT: sideeffect
-; CHECK: msasm
-	tail call void asm msasm "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
-	ret void
-; CHECK: ret
-}
-define void @test4() nounwind {
-; CHECK: test4
-; CHECK-NOT: sideeffect
-; CHECK-NOT: msasm
-	tail call void asm  "mov", "~{dirflag},~{fpsr},~{flags}"() nounwind
-	ret void
-; CHECK: ret
-}

Added: llvm/trunk/test/FrontendC++/alignstack.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/alignstack.cpp?rev=84796&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC++/alignstack.cpp (added)
+++ llvm/trunk/test/FrontendC++/alignstack.cpp Wed Oct 21 18:29:12 2009
@@ -0,0 +1,23 @@
+// RUN: %llvmgxx %s -fasm-blocks -S -o - | FileCheck %s
+// Complicated expression as jump target
+// XFAIL: *
+// XTARGET: x86,i386,i686
+
+void Method3()
+{
+// CHECK: Method3
+// CHECK-NOT: alignstack
+    asm("foo:");
+// CHECK: return
+}
+
+void Method4()
+{
+// CHECK: Method4
+// CHECK: alignstack
+  asm {
+    bar:
+  }
+// CHECK: return
+}
+

Removed: llvm/trunk/test/FrontendC++/msasm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/msasm.cpp?rev=84795&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC++/msasm.cpp (original)
+++ llvm/trunk/test/FrontendC++/msasm.cpp (removed)
@@ -1,23 +0,0 @@
-// RUN: %llvmgxx %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/alignstack.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/alignstack.c?rev=84796&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC/alignstack.c (added)
+++ llvm/trunk/test/FrontendC/alignstack.c Wed Oct 21 18:29:12 2009
@@ -0,0 +1,23 @@
+// RUN: %llvmgcc %s -fasm-blocks -S -o - | FileCheck %s
+// Complicated expression as jump target
+// XFAIL: *
+// XTARGET: x86,i386,i686,darwin
+
+void Method3()
+{
+// CHECK: Method3
+// CHECK-NOT: alignstack
+    asm("foo:");
+// CHECK: return
+}
+
+void Method4()
+{
+// CHECK: Method4
+// CHECK: alignstack
+  asm {
+    bar:
+  }
+// CHECK: return
+}
+

Removed: llvm/trunk/test/FrontendC/msasm.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/msasm.c?rev=84795&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC/msasm.c (original)
+++ llvm/trunk/test/FrontendC/msasm.c (removed)
@@ -1,23 +0,0 @@
-// RUN: %llvmgcc %s -fasm-blocks -S -o - | FileCheck %s
-// Complicated expression as jump target
-// XFAIL: *
-// XTARGET: x86,i386,i686,darwin
-
-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