diff --git a/test/Transforms/PhaseOrdering/X86/vector-reductions.ll b/test/Transforms/PhaseOrdering/X86/vector-reductions.ll index cf01ead15b0..3ec70361627 100644 --- a/test/Transforms/PhaseOrdering/X86/vector-reductions.ll +++ b/test/Transforms/PhaseOrdering/X86/vector-reductions.ll @@ -294,15 +294,16 @@ define i1 @cmp_lt_gt(double %a, double %b, double %c) { ; CHECK-NEXT: [[TMP5:%.*]] = insertelement <2 x double> undef, double [[MUL]], i32 0 ; CHECK-NEXT: [[TMP6:%.*]] = shufflevector <2 x double> [[TMP5]], <2 x double> undef, <2 x i32> zeroinitializer ; CHECK-NEXT: [[TMP7:%.*]] = fdiv <2 x double> [[TMP4]], [[TMP6]] -; CHECK-NEXT: [[TMP8:%.*]] = fcmp olt <2 x double> [[TMP7]], -; CHECK-NEXT: [[SHIFT:%.*]] = shufflevector <2 x i1> [[TMP8]], <2 x i1> undef, <2 x i32> -; CHECK-NEXT: [[TMP9:%.*]] = and <2 x i1> [[TMP8]], [[SHIFT]] -; CHECK-NEXT: [[OR_COND:%.*]] = extractelement <2 x i1> [[TMP9]], i64 0 +; CHECK-NEXT: [[TMP8:%.*]] = extractelement <2 x double> [[TMP7]], i32 0 +; CHECK-NEXT: [[CMP:%.*]] = fcmp olt double [[TMP8]], 0x3EB0C6F7A0B5ED8D +; CHECK-NEXT: [[TMP9:%.*]] = extractelement <2 x double> [[TMP7]], i32 1 +; CHECK-NEXT: [[CMP4:%.*]] = fcmp olt double [[TMP9]], 0x3EB0C6F7A0B5ED8D +; CHECK-NEXT: [[OR_COND:%.*]] = and i1 [[CMP]], [[CMP4]] ; CHECK-NEXT: br i1 [[OR_COND]], label [[CLEANUP:%.*]], label [[LOR_LHS_FALSE:%.*]] ; CHECK: lor.lhs.false: ; CHECK-NEXT: [[TMP10:%.*]] = fcmp ule <2 x double> [[TMP7]], -; CHECK-NEXT: [[SHIFT2:%.*]] = shufflevector <2 x i1> [[TMP10]], <2 x i1> undef, <2 x i32> -; CHECK-NEXT: [[TMP11:%.*]] = or <2 x i1> [[TMP10]], [[SHIFT2]] +; CHECK-NEXT: [[SHIFT:%.*]] = shufflevector <2 x i1> [[TMP10]], <2 x i1> undef, <2 x i32> +; CHECK-NEXT: [[TMP11:%.*]] = or <2 x i1> [[TMP10]], [[SHIFT]] ; CHECK-NEXT: [[NOT_OR_COND1:%.*]] = extractelement <2 x i1> [[TMP11]], i32 0 ; CHECK-NEXT: ret i1 [[NOT_OR_COND1]] ; CHECK: cleanup: diff --git a/test/Transforms/VectorCombine/X86/extract-cmp-binop.ll b/test/Transforms/VectorCombine/X86/extract-cmp-binop.ll index fa7df755252..df46fcecf9a 100644 --- a/test/Transforms/VectorCombine/X86/extract-cmp-binop.ll +++ b/test/Transforms/VectorCombine/X86/extract-cmp-binop.ll @@ -122,20 +122,3 @@ define i1 @different_source_vec(<4 x i32> %a, <4 x i32> %b) { %r = and i1 %cmp1, %cmp2 ret i1 %r } - -define i1 @scalable( %a) { -; CHECK-LABEL: @scalable( -; CHECK-NEXT: [[E1:%.*]] = extractelement [[A:%.*]], i32 3 -; CHECK-NEXT: [[E2:%.*]] = extractelement [[A]], i32 1 -; CHECK-NEXT: [[CMP1:%.*]] = icmp sgt i32 [[E1]], 42 -; CHECK-NEXT: [[CMP2:%.*]] = icmp sgt i32 [[E2]], -8 -; CHECK-NEXT: [[R:%.*]] = xor i1 [[CMP1]], [[CMP2]] -; CHECK-NEXT: ret i1 [[R]] -; - %e1 = extractelement %a, i32 3 - %e2 = extractelement %a, i32 1 - %cmp1 = icmp sgt i32 %e1, 42 - %cmp2 = icmp sgt i32 %e2, -8 - %r = xor i1 %cmp1, %cmp2 - ret i1 %r -}