Fix tests that failed on i686-win32 after r160248:
authorAlexey Samsonov <samsonov@google.com>
Mon, 16 Jul 2012 14:33:36 +0000 (14:33 +0000)
committerAlexey Samsonov <samsonov@google.com>
Mon, 16 Jul 2012 14:33:36 +0000 (14:33 +0000)
1. FileCheck-ize epilogue.ll and allow another asm instruction to restore %rsp.
2. Remove check in widen_arith-3.ll that was hitting instruction in epilogue instead of
vector add.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160274 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/epilogue.ll
test/CodeGen/X86/widen_arith-3.ll

index 7ab10a58860fbd4aa6f763f6f553bde30cfff02b..090680e48febba4b91c3beedb3fa1267817aa009 100644 (file)
@@ -1,5 +1,7 @@
-; RUN: llc < %s -mcpu=generic -march=x86 | not grep lea
-; RUN: llc < %s -mcpu=generic -march=x86 | grep "movl  %ebp"
+; RUN: llc < %s -mcpu=generic -march=x86 | FileCheck %s
+
+; CHECK-NOT: lea{{.*}}(%esp)
+; CHECK: {{(mov.* %ebp, %esp)|(lea.*\(%ebp\), %esp)}}
 
 declare void @bar(<2 x i64>* %n)
 
index f55b184f3acc112770ef311df0e285a8f49d1890..d86042a44806f47b3788f5778a1cbc03b97c60d2 100644 (file)
@@ -2,7 +2,6 @@
 ; CHECK: incl
 ; CHECK: incl
 ; CHECK: incl
-; CHECK: addl
 
 ; Widen a v3i16 to v8i16 to do a vector add