summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/memcmp.ll
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-02-22 07:20:52 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-02-22 07:20:52 +0000
commitdb2649995d563925cbd6381b111e46ded81f2328 (patch)
tree750978e4621b6191249f305c64f2ca74e117948d /test/CodeGen/X86/memcmp.ll
parent20cee65fd1509b2c87e3abac248290847abb951e (diff)
downloadllvm-db2649995d563925cbd6381b111e46ded81f2328.tar.gz
llvm-db2649995d563925cbd6381b111e46ded81f2328.tar.bz2
llvm-db2649995d563925cbd6381b111e46ded81f2328.tar.xz
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/memcmp.ll')
-rw-r--r--test/CodeGen/X86/memcmp.ll21
1 files changed, 11 insertions, 10 deletions
diff --git a/test/CodeGen/X86/memcmp.ll b/test/CodeGen/X86/memcmp.ll
index 36be1f308c..f4bc1bb701 100644
--- a/test/CodeGen/X86/memcmp.ll
+++ b/test/CodeGen/X86/memcmp.ll
@@ -1,4 +1,5 @@
-; RUN: llc %s -o - -march=x86-64 | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
; This tests codegen time inlining/optimization of memcmp
; rdar://6480398
@@ -20,8 +21,8 @@ bb: ; preds = %entry
return: ; preds = %entry
ret void
; CHECK: memcmp2:
-; CHECK: movw (%rdi), %ax
-; CHECK: cmpw (%rsi), %ax
+; CHECK: movw ([[A0:%rdi|%rcx]]), %ax
+; CHECK: cmpw ([[A1:%rsi|%rdx]]), %ax
}
define void @memcmp2a(i8* %X, i32* nocapture %P) nounwind {
@@ -37,7 +38,7 @@ bb: ; preds = %entry
return: ; preds = %entry
ret void
; CHECK: memcmp2a:
-; CHECK: cmpw $28527, (%rdi)
+; CHECK: cmpw $28527, ([[A0]])
}
@@ -54,8 +55,8 @@ bb: ; preds = %entry
return: ; preds = %entry
ret void
; CHECK: memcmp4:
-; CHECK: movl (%rdi), %eax
-; CHECK: cmpl (%rsi), %eax
+; CHECK: movl ([[A0]]), %eax
+; CHECK: cmpl ([[A1]]), %eax
}
define void @memcmp4a(i8* %X, i32* nocapture %P) nounwind {
@@ -71,7 +72,7 @@ bb: ; preds = %entry
return: ; preds = %entry
ret void
; CHECK: memcmp4a:
-; CHECK: cmpl $1869573999, (%rdi)
+; CHECK: cmpl $1869573999, ([[A0]])
}
define void @memcmp8(i8* %X, i8* %Y, i32* nocapture %P) nounwind {
@@ -87,8 +88,8 @@ bb: ; preds = %entry
return: ; preds = %entry
ret void
; CHECK: memcmp8:
-; CHECK: movq (%rdi), %rax
-; CHECK: cmpq (%rsi), %rax
+; CHECK: movq ([[A0]]), %rax
+; CHECK: cmpq ([[A1]]), %rax
}
define void @memcmp8a(i8* %X, i32* nocapture %P) nounwind {
@@ -105,6 +106,6 @@ return: ; preds = %entry
ret void
; CHECK: memcmp8a:
; CHECK: movabsq $8029759185026510694, %rax
-; CHECK: cmpq %rax, (%rdi)
+; CHECK: cmpq %rax, ([[A0]])
}