[llvm-commits] [PATCH] test/CodeGen/X86 patches for win32
NAKAMURA Takumi
geek4civic at gmail.com
Tue Aug 31 15:00:11 PDT 2010
Good morning.
This patch is set of tweaks for win32 to test/CodeGen/X86
Some issues are on win32.
- EH is disabled by default.
- @main() with extra calling __main.
- stack allocatoin
In fact, all tests in CodeGen/X86 pass on Cygwin,
but I am not sure my patch would be reasonable.
Please review it.
...Takumi
-------------- next part --------------
diff --git a/test/CodeGen/X86/2009-03-13-PHIElimBug.ll b/test/CodeGen/X86/2009-03-13-PHIElimBug.ll
index 8d42627..7652587 100644
--- a/test/CodeGen/X86/2009-03-13-PHIElimBug.ll
+++ b/test/CodeGen/X86/2009-03-13-PHIElimBug.ll
@@ -2,6 +2,9 @@
; Check the register copy comes after the call to f and before the call to g
; PR3784
+; EH is not supported by default on codegen win32.
+; XFAIL: cygwin,mingw,win32
+
declare i32 @f()
declare i32 @g()
diff --git a/test/CodeGen/X86/2009-03-16-PHIElimInLPad.ll b/test/CodeGen/X86/2009-03-16-PHIElimInLPad.ll
index da493d4..d089d36 100644
--- a/test/CodeGen/X86/2009-03-16-PHIElimInLPad.ll
+++ b/test/CodeGen/X86/2009-03-16-PHIElimInLPad.ll
@@ -1,6 +1,9 @@
; RUN: llc < %s -march=x86 -asm-verbose | FileCheck %s
; Check that register copies in the landing pad come after the EH_LABEL
+; EH is not supported by default on codegen win32.
+; XFAIL: cygwin,mingw,win32
+
declare i32 @f()
define i32 @phi(i32 %x) {
diff --git a/test/CodeGen/X86/dyn-stackalloc.ll b/test/CodeGen/X86/dyn-stackalloc.ll
index 1df0920..d25c570 100644
--- a/test/CodeGen/X86/dyn-stackalloc.ll
+++ b/test/CodeGen/X86/dyn-stackalloc.ll
@@ -2,6 +2,9 @@
; RUN: llc < %s -march=x86 | egrep {\\\$4294967280|-16}
; RUN: llc < %s -march=x86-64 | grep {\\-16}
+; XFAIL: cygwin,mingw,win32
+; FIXME: This works with -mtriple=linux.
+
define void @t() nounwind {
A:
br label %entry
diff --git a/test/CodeGen/X86/loop-strength-reduce4.ll b/test/CodeGen/X86/loop-strength-reduce4.ll
index 6c0eb8c..6556fde 100644
--- a/test/CodeGen/X86/loop-strength-reduce4.ll
+++ b/test/CodeGen/X86/loop-strength-reduce4.ll
@@ -1,5 +1,5 @@
-; RUN: llc < %s -march=x86 -relocation-model=static -mtriple=i686-apple-darwin | FileCheck %s -check-prefix=STATIC
-; RUN: llc < %s -march=x86 -relocation-model=pic | FileCheck %s -check-prefix=PIC
+; RUN: llc < %s -mtriple=i686-apple-darwin -relocation-model=static | FileCheck %s -check-prefix=STATIC
+; RUN: llc < %s -mtriple=i686-apple-darwin -relocation-model=pic | FileCheck %s -check-prefix=PIC
; By starting the IV at -64 instead of 0, a cmp is eliminated,
; as the flags from the add can be used directly.
diff --git a/test/CodeGen/X86/twoaddr-coalesce.ll b/test/CodeGen/X86/twoaddr-coalesce.ll
index 4c37225..6f6d6f2 100644
--- a/test/CodeGen/X86/twoaddr-coalesce.ll
+++ b/test/CodeGen/X86/twoaddr-coalesce.ll
@@ -3,7 +3,7 @@
@"\01LC" = internal constant [4 x i8] c"%d\0A\00" ; <[4 x i8]*> [#uses=1]
-define i32 @main() nounwind {
+define i32 @foo() nounwind {
bb1.thread:
br label %bb1
More information about the llvm-commits
mailing list