aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-02-22 07:20:02 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-02-22 07:20:02 +0000
commit64779f4b87d8f9fef52c59cc4844ff8e7536a5b5 (patch)
treef891a662889954b69591e882e579236fffc5eadd
parent9839eb06bd30e440ca91eaa60df52b6b0dd9e23f (diff)
downloadexternal_llvm-64779f4b87d8f9fef52c59cc4844ff8e7536a5b5.zip
external_llvm-64779f4b87d8f9fef52c59cc4844ff8e7536a5b5.tar.gz
external_llvm-64779f4b87d8f9fef52c59cc4844ff8e7536a5b5.tar.bz2
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126202 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/fast-isel-gep.ll17
1 files changed, 9 insertions, 8 deletions
diff --git a/test/CodeGen/X86/fast-isel-gep.ll b/test/CodeGen/X86/fast-isel-gep.ll
index 622a1ff..fbe0243 100644
--- a/test/CodeGen/X86/fast-isel-gep.ll
+++ b/test/CodeGen/X86/fast-isel-gep.ll
@@ -1,4 +1,5 @@
-; RUN: llc < %s -march=x86-64 -O0 | FileCheck %s --check-prefix=X64
+; RUN: llc < %s -mtriple=x86_64-linux -O0 | FileCheck %s --check-prefix=X64
+; RUN: llc < %s -mtriple=x86_64-win32 -O0 | FileCheck %s --check-prefix=X64
; RUN: llc < %s -march=x86 -O0 | FileCheck %s --check-prefix=X32
; GEP indices are interpreted as signed integers, so they
@@ -13,8 +14,8 @@ define i32 @test1(i32 %t3, i32* %t1) nounwind {
; X32: ret
; X64: test1:
-; X64: movslq %edi, %rax
-; X64: movl (%rsi,%rax,4), %eax
+; X64: movslq %e[[A0:di|cx]], %rax
+; X64: movl (%r[[A1:si|dx]],%rax,4), %eax
; X64: ret
}
@@ -27,7 +28,7 @@ define i32 @test2(i64 %t3, i32* %t1) nounwind {
; X32: ret
; X64: test2:
-; X64: movl (%rsi,%rdi,4), %eax
+; X64: movl (%r[[A1]],%r[[A0]],4), %eax
; X64: ret
}
@@ -47,7 +48,7 @@ entry:
; X32: ret
; X64: test3:
-; X64: movb -2(%rdi), %al
+; X64: movb -2(%r[[A0]]), %al
; X64: ret
}
@@ -80,9 +81,9 @@ define i64 @test5(i8* %A, i32 %I, i64 %B) nounwind {
%v11 = add i64 %B, %v10
ret i64 %v11
; X64: test5:
-; X64: movslq %esi, %rax
-; X64-NEXT: movq (%rdi,%rax), %rax
-; X64-NEXT: addq %rdx, %rax
+; X64: movslq %e[[A1]], %rax
+; X64-NEXT: movq (%r[[A0]],%rax), %rax
+; X64-NEXT: addq %{{rdx|r8}}, %rax
; X64-NEXT: ret
}