X86: Match pmin/pmax as a target specific dag combine. This occurs during vectorization.
[oota-llvm.git] / test / CodeGen / X86 / avx2-logic.ll
index 13ebaa6f879706c79c2f0d838bdd52536a1fa416..a5bb1a8f8e44b22ac2351ce7984cb5c126ac934c 100644 (file)
@@ -48,9 +48,8 @@ entry:
 ; CHECK: vpblendvb
 ; CHECK: vpblendvb %ymm
 ; CHECK: ret
-define <32 x i8> @vpblendvb(<32 x i8> %x, <32 x i8> %y) {
-  %min_is_x = icmp ult <32 x i8> %x, %y
-  %min = select <32 x i1> %min_is_x, <32 x i8> %x, <32 x i8> %y
+define <32 x i8> @vpblendvb(<32 x i1> %cond, <32 x i8> %x, <32 x i8> %y) {
+  %min = select <32 x i1> %cond, <32 x i8> %x, <32 x i8> %y
   ret <32 x i8> %min
 }