From 7d977a3e80455013541f704b94944d9090e96e06 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 21 Oct 2009 23:29:12 +0000 Subject: Adjust testcases for msasm -> alignstack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84796 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Assembler/alignstack.ll | 36 ++++++++++++++++++++++++++++++++++++ test/Assembler/msasm.ll | 36 ------------------------------------ test/FrontendC++/alignstack.cpp | 23 +++++++++++++++++++++++ test/FrontendC++/msasm.cpp | 23 ----------------------- test/FrontendC/alignstack.c | 23 +++++++++++++++++++++++ test/FrontendC/msasm.c | 23 ----------------------- 6 files changed, 82 insertions(+), 82 deletions(-) create mode 100644 test/Assembler/alignstack.ll delete mode 100644 test/Assembler/msasm.ll create mode 100644 test/FrontendC++/alignstack.cpp delete mode 100644 test/FrontendC++/msasm.cpp create mode 100644 test/FrontendC/alignstack.c delete mode 100644 test/FrontendC/msasm.c (limited to 'test') diff --git a/test/Assembler/alignstack.ll b/test/Assembler/alignstack.ll new file mode 100644 index 0000000..9f2059f --- /dev/null +++ b/test/Assembler/alignstack.ll @@ -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 index 5e32963..0000000 --- a/test/Assembler/msasm.ll +++ /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 index 0000000..5438d6c --- /dev/null +++ b/test/FrontendC++/alignstack.cpp @@ -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 index d8d1f37..0000000 --- a/test/FrontendC++/msasm.cpp +++ /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 index 0000000..30c00ff --- /dev/null +++ b/test/FrontendC/alignstack.c @@ -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 index c1dfd2d..0000000 --- a/test/FrontendC/msasm.c +++ /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 -} - -- cgit v1.1