aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/lea.ll
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-02-22 07:20:26 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-02-22 07:20:26 +0000
commit22bc92baa46090c498ed5e8740ce4cf81f8e39b8 (patch)
treeda35bf03dbfaab4e3162ca1d11f189e60b10da6b /test/CodeGen/X86/lea.ll
parented2ac7c211242adbb8e843eb3989152bd164bf58 (diff)
downloadexternal_llvm-22bc92baa46090c498ed5e8740ce4cf81f8e39b8.zip
external_llvm-22bc92baa46090c498ed5e8740ce4cf81f8e39b8.tar.gz
external_llvm-22bc92baa46090c498ed5e8740ce4cf81f8e39b8.tar.bz2
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/lea.ll')
-rw-r--r--test/CodeGen/X86/lea.ll9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/CodeGen/X86/lea.ll b/test/CodeGen/X86/lea.ll
index 22a9644..5421355 100644
--- a/test/CodeGen/X86/lea.ll
+++ b/test/CodeGen/X86/lea.ll
@@ -1,11 +1,12 @@
-; RUN: llc < %s -march=x86-64 | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
define i32 @test1(i32 %x) nounwind {
%tmp1 = shl i32 %x, 3
%tmp2 = add i32 %tmp1, 7
ret i32 %tmp2
; CHECK: test1:
-; CHECK: leal 7(,%rdi,8), %eax
+; CHECK: leal 7(,[[A0:%rdi|%rcx]],8), %eax
}
@@ -27,8 +28,8 @@ bb.nph:
bb2:
ret i32 %x_offs
; CHECK: test2:
-; CHECK: leal -5(%rdi), %eax
+; CHECK: leal -5([[A0]]), %eax
; CHECK: andl $-4, %eax
; CHECK: negl %eax
-; CHECK: leal -4(%rdi,%rax), %eax
+; CHECK: leal -4([[A0]],%rax), %eax
}