summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/vec_compare.ll
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-08-02 00:56:42 +0000
committerManman Ren <mren@apple.com>2012-08-02 00:56:42 +0000
commit5759d012309a3fedab83ad0db16934c5f708d00f (patch)
tree2e8ad671d543c3ae9adfd4b4f018587a62d4d3e9 /llvm/test/CodeGen/X86/vec_compare.ll
parent4c4fe84b25a8c866d396d08f3000e7e56ccc0c7d (diff)
downloadbcm5719-llvm-5759d012309a3fedab83ad0db16934c5f708d00f.tar.gz
bcm5719-llvm-5759d012309a3fedab83ad0db16934c5f708d00f.zip
X86 Peephole: fold loads to the source register operand if possible.
Machine CSE and other optimizations can remove instructions so folding is possible at peephole while not possible at ISel. This patch is a rework of r160919 and was tested on clang self-host on my local machine. rdar://10554090 and rdar://11873276 llvm-svn: 161152
Diffstat (limited to 'llvm/test/CodeGen/X86/vec_compare.ll')
-rw-r--r--llvm/test/CodeGen/X86/vec_compare.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/vec_compare.ll b/llvm/test/CodeGen/X86/vec_compare.ll
index 39c9b770d5f..1e04f19ee89 100644
--- a/llvm/test/CodeGen/X86/vec_compare.ll
+++ b/llvm/test/CodeGen/X86/vec_compare.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mcpu=yonah | FileCheck %s
+; RUN: llc < %s -march=x86 -mcpu=yonah -mtriple=i386-apple-darwin | FileCheck %s
define <4 x i32> @test1(<4 x i32> %A, <4 x i32> %B) nounwind {
@@ -14,8 +14,8 @@ define <4 x i32> @test1(<4 x i32> %A, <4 x i32> %B) nounwind {
define <4 x i32> @test2(<4 x i32> %A, <4 x i32> %B) nounwind {
; CHECK: test2:
; CHECK: pcmp
-; CHECK: pcmp
-; CHECK: pxor
+; CHECK: pxor LCP
+; CHECK: movdqa
; CHECK: ret
%C = icmp sge <4 x i32> %A, %B
%D = sext <4 x i1> %C to <4 x i32>
OpenPOWER on IntegriCloud