summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/combine-umax.ll
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-11 10:52:37 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-11 10:52:37 +0000
commit0be5567a891c192582ea87d67b58f18f00dcf038 (patch)
treea27f38c984d237bdb85019bed0ff7b62f1273485 /llvm/test/CodeGen/X86/combine-umax.ll
parent91e2b9d081829af95a7b84ec5393e33539e9130e (diff)
downloadbcm5719-llvm-0be5567a891c192582ea87d67b58f18f00dcf038.tar.gz
bcm5719-llvm-0be5567a891c192582ea87d67b58f18f00dcf038.zip
[X86][SSE] Enable SMIN/SMAX/UMIN/UMAX custom lowering for all legal types
This allows us to recognise more saturation patterns and also simplify some MINMAX codegen that was failing to combine CMPGE comparisons to a legal CMPGT. Differential Revision: https://reviews.llvm.org/D43014 llvm-svn: 324837
Diffstat (limited to 'llvm/test/CodeGen/X86/combine-umax.ll')
-rw-r--r--llvm/test/CodeGen/X86/combine-umax.ll6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/X86/combine-umax.ll b/llvm/test/CodeGen/X86/combine-umax.ll
index e1cc4648af7..f549e1f85da 100644
--- a/llvm/test/CodeGen/X86/combine-umax.ll
+++ b/llvm/test/CodeGen/X86/combine-umax.ll
@@ -12,11 +12,7 @@ define <8 x i16> @test_v8i16_nosignbit(<8 x i16> %a, <8 x i16> %b) {
; SSE2: # %bb.0:
; SSE2-NEXT: pand {{.*}}(%rip), %xmm0
; SSE2-NEXT: psrlw $1, %xmm1
-; SSE2-NEXT: movdqa %xmm1, %xmm2
-; SSE2-NEXT: pcmpgtw %xmm0, %xmm2
-; SSE2-NEXT: pand %xmm2, %xmm0
-; SSE2-NEXT: pandn %xmm1, %xmm2
-; SSE2-NEXT: por %xmm2, %xmm0
+; SSE2-NEXT: pminsw %xmm1, %xmm0
; SSE2-NEXT: retq
;
; SSE41-LABEL: test_v8i16_nosignbit:
OpenPOWER on IntegriCloud