From 47579b21e2043a69832a1378e85f1e545abfef08 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Sat, 13 Oct 2018 16:15:37 +0000 Subject: [InstCombine] fix complexity canonicalization with fake unary vector ops This is a preliminary step to avoid regressions when we add an actual 'fneg' instruction to IR. See D52934 and D53205. llvm-svn: 344458 --- llvm/test/Transforms/InstCombine/operand-complexity.ll | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/test/Transforms/InstCombine/operand-complexity.ll') diff --git a/llvm/test/Transforms/InstCombine/operand-complexity.ll b/llvm/test/Transforms/InstCombine/operand-complexity.ll index 747b0c836a5..20abe7b48f9 100644 --- a/llvm/test/Transforms/InstCombine/operand-complexity.ll +++ b/llvm/test/Transforms/InstCombine/operand-complexity.ll @@ -33,7 +33,7 @@ define <2 x i8> @neg_vec_undef(<2 x i8> %x) { ; CHECK-LABEL: @neg_vec_undef( ; CHECK-NEXT: [[BO:%.*]] = udiv <2 x i8> [[X:%.*]], ; CHECK-NEXT: [[NEGX:%.*]] = sub <2 x i8> , [[X]] -; CHECK-NEXT: [[R:%.*]] = mul <2 x i8> [[NEGX]], [[BO]] +; CHECK-NEXT: [[R:%.*]] = mul <2 x i8> [[BO]], [[NEGX]] ; CHECK-NEXT: ret <2 x i8> [[R]] ; %bo = udiv <2 x i8> %x, @@ -74,7 +74,7 @@ define <2 x i8> @not_vec_undef(<2 x i8> %x) { ; CHECK-LABEL: @not_vec_undef( ; CHECK-NEXT: [[BO:%.*]] = udiv <2 x i8> [[X:%.*]], ; CHECK-NEXT: [[NOTX:%.*]] = xor <2 x i8> [[X]], -; CHECK-NEXT: [[R:%.*]] = mul <2 x i8> [[NOTX]], [[BO]] +; CHECK-NEXT: [[R:%.*]] = mul <2 x i8> [[BO]], [[NOTX]] ; CHECK-NEXT: ret <2 x i8> [[R]] ; %bo = udiv <2 x i8> %x, @@ -123,7 +123,7 @@ define <2 x float> @fneg_vec_undef(<2 x float> %x) { ; CHECK-LABEL: @fneg_vec_undef( ; CHECK-NEXT: [[BO:%.*]] = fdiv <2 x float> [[X:%.*]], ; CHECK-NEXT: [[FNEGX:%.*]] = fsub <2 x float> , [[X]] -; CHECK-NEXT: [[R:%.*]] = fmul <2 x float> [[FNEGX]], [[BO]] +; CHECK-NEXT: [[R:%.*]] = fmul <2 x float> [[BO]], [[FNEGX]] ; CHECK-NEXT: call void @use_vec(<2 x float> [[FNEGX]]) ; CHECK-NEXT: ret <2 x float> [[R]] ; -- cgit v1.2.3