Adjust testcases for msasm -> alignstack.
authorDale Johannesen <dalej@apple.com>
Wed, 21 Oct 2009 23:29:12 +0000 (23:29 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 21 Oct 2009 23:29:12 +0000 (23:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84796 91177308-0d34-0410-b5e6-96231b3b80d8

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

diff --git a/test/Assembler/alignstack.ll b/test/Assembler/alignstack.ll
new file mode 100644 (file)
index 0000000..9f2059f
--- /dev/null
@@ -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
+}
diff --git a/test/Assembler/msasm.ll b/test/Assembler/msasm.ll
deleted file mode 100644 (file)
index 5e32963..0000000
+++ /dev/null
@@ -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
-}
diff --git a/test/FrontendC++/alignstack.cpp b/test/FrontendC++/alignstack.cpp
new file mode 100644 (file)
index 0000000..5438d6c
--- /dev/null
@@ -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
+}
+
diff --git a/test/FrontendC++/msasm.cpp b/test/FrontendC++/msasm.cpp
deleted file mode 100644 (file)
index d8d1f37..0000000
+++ /dev/null
@@ -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
-}
-
diff --git a/test/FrontendC/alignstack.c b/test/FrontendC/alignstack.c
new file mode 100644 (file)
index 0000000..30c00ff
--- /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,darwin
+
+void Method3()
+{
+// CHECK: Method3
+// CHECK-NOT: alignstack
+    asm("foo:");
+// CHECK: return
+}
+
+void Method4()
+{
+// CHECK: Method4
+// CHECK: alignstack
+  asm {
+    bar:
+  }
+// CHECK: return
+}
+
diff --git a/test/FrontendC/msasm.c b/test/FrontendC/msasm.c
deleted file mode 100644 (file)
index c1dfd2d..0000000
+++ /dev/null
@@ -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
-}
-