Apply Duncan's test fix from r139986 to the avx version of that test too.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 18 Sep 2011 00:41:38 +0000 (00:41 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 18 Sep 2011 00:41:38 +0000 (00:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139992 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/avx-blend.ll

index 71727827b3d58bdc8a0564c5a0dd898e89ba16f7..7729491733929810207d37f91b59504cff2ac71e 100644 (file)
@@ -94,11 +94,11 @@ define <2 x double> @A(<2 x double> %x, <2 x double> %y) {
 
 ; CHECK: B
 define <2 x double> @B(<2 x double> %x, <2 x double> %y) {
-  ; CHECK: vcmpltpd
+  ; CHECK: vcmpnlepd
   ; CHECK: vblendvpd
-  %max_is_x = fcmp ogt <2 x double> %x, %y
-  %max = select <2 x i1> %max_is_x, <2 x double> %x, <2 x double> %y
-  ret <2 x double> %max
+  %min_is_x = fcmp ult <2 x double> %x, %y
+  %min = select <2 x i1> %min_is_x, <2 x double> %x, <2 x double> %y
+  ret <2 x double> %min
 }