From 893d3d336a8a897f0d0aa28f8ddd26dad2cb15d2 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Mon, 16 Jul 2012 14:33:36 +0000 Subject: [PATCH] Fix tests that failed on i686-win32 after r160248: 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. llvm-svn: 160274 --- llvm/test/CodeGen/X86/epilogue.ll | 6 ++++-- llvm/test/CodeGen/X86/widen_arith-3.ll | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/llvm/test/CodeGen/X86/epilogue.ll b/llvm/test/CodeGen/X86/epilogue.ll index 7ab10a58860f..090680e48feb 100644 --- a/llvm/test/CodeGen/X86/epilogue.ll +++ b/llvm/test/CodeGen/X86/epilogue.ll @@ -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) diff --git a/llvm/test/CodeGen/X86/widen_arith-3.ll b/llvm/test/CodeGen/X86/widen_arith-3.ll index f55b184f3acc..d86042a44806 100644 --- a/llvm/test/CodeGen/X86/widen_arith-3.ll +++ b/llvm/test/CodeGen/X86/widen_arith-3.ll @@ -2,7 +2,6 @@ ; CHECK: incl ; CHECK: incl ; CHECK: incl -; CHECK: addl ; Widen a v3i16 to v8i16 to do a vector add