summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avoid-lea-scale2.ll
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-03-16 13:53:07 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-03-16 13:53:07 +0000
commitbfc4c983a6c523b95972cf43e1b202f8eb1ebfd2 (patch)
treeb26b48b690988e6a71d1177dd7960280820e179e /test/CodeGen/X86/avoid-lea-scale2.ll
parent37947c6bad087605f07d73a0a418c3781e2eaaa9 (diff)
downloadllvm-bfc4c983a6c523b95972cf43e1b202f8eb1ebfd2.tar.gz
llvm-bfc4c983a6c523b95972cf43e1b202f8eb1ebfd2.tar.bz2
llvm-bfc4c983a6c523b95972cf43e1b202f8eb1ebfd2.tar.xz
test/CodeGen/X86: FileCheck-ize and add actions for x86_64-linux and x86_64-win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avoid-lea-scale2.ll')
-rw-r--r--test/CodeGen/X86/avoid-lea-scale2.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/X86/avoid-lea-scale2.ll b/test/CodeGen/X86/avoid-lea-scale2.ll
index 8003de262d..cee2ee4e03 100644
--- a/test/CodeGen/X86/avoid-lea-scale2.ll
+++ b/test/CodeGen/X86/avoid-lea-scale2.ll
@@ -1,4 +1,6 @@
-; RUN: llc < %s -march=x86-64 | grep {leal.*-2(\[%\]rdi,\[%\]rdi)}
+; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
+; CHECK: leal -2({{%rdi,%rdi|%rcx,%rcx}})
define i32 @foo(i32 %x) nounwind readnone {
%t0 = shl i32 %x, 1