aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/vec_compare.ll
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-07-28 16:48:01 +0000
committerManman Ren <mren@apple.com>2012-07-28 16:48:01 +0000
commit0eb3edea9cb6819334173a7d288da85943201fe5 (patch)
tree77172a23d7618e5dbe447fc4b7536ba1a416deaf /test/CodeGen/X86/vec_compare.ll
parentcdfbcdeeede52de472ae8187c0fb4ed4a014c2a3 (diff)
downloadexternal_llvm-0eb3edea9cb6819334173a7d288da85943201fe5.zip
external_llvm-0eb3edea9cb6819334173a7d288da85943201fe5.tar.gz
external_llvm-0eb3edea9cb6819334173a7d288da85943201fe5.tar.bz2
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. rdar://10554090 and rdar://11873276 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_compare.ll')
-rw-r--r--test/CodeGen/X86/vec_compare.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/vec_compare.ll b/test/CodeGen/X86/vec_compare.ll
index 39c9b77..fffcf91 100644
--- a/test/CodeGen/X86/vec_compare.ll
+++ b/test/CodeGen/X86/vec_compare.ll
@@ -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>