summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-08-08 16:04:48 +0000
committerSanjay Patel <spatel@rotateright.com>2018-08-08 16:04:48 +0000
commit2054dd79c200f2a3b7d6e770dd92a1908fbc25dc (patch)
tree660a9051e1b6f2090d0e45020300294b35034709 /llvm/test
parent58df0e4d2cc7269d4cf54a5aa020dcd66ac0cf34 (diff)
downloadbcm5719-llvm-2054dd79c200f2a3b7d6e770dd92a1908fbc25dc.tar.gz
bcm5719-llvm-2054dd79c200f2a3b7d6e770dd92a1908fbc25dc.zip
[InstCombine] fold fsub+fsub with common operand
This is a sibling to the simplify from: rL339171 llvm-svn: 339266
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/InstCombine/fast-math.ll7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstCombine/fast-math.ll b/llvm/test/Transforms/InstCombine/fast-math.ll
index 7ea9beb8456..8a802105885 100644
--- a/llvm/test/Transforms/InstCombine/fast-math.ll
+++ b/llvm/test/Transforms/InstCombine/fast-math.ll
@@ -335,8 +335,8 @@ define <2 x float> @fsub_fadd_common_op_fneg_commute_vec(<2 x float> %x, <2 x fl
define float @fsub_fsub_common_op_fneg(float %x, float %y) {
; CHECK-LABEL: @fsub_fsub_common_op_fneg(
-; CHECK-NEXT: [[TMP1:%.*]] = fsub reassoc nsz float -0.000000e+00, [[X:%.*]]
-; CHECK-NEXT: ret float [[TMP1]]
+; CHECK-NEXT: [[R:%.*]] = fsub reassoc nsz float -0.000000e+00, [[X:%.*]]
+; CHECK-NEXT: ret float [[R]]
;
%s = fsub float %y, %x
%r = fsub reassoc nsz float %s, %y
@@ -347,8 +347,7 @@ define float @fsub_fsub_common_op_fneg(float %x, float %y) {
define <2 x float> @fsub_fsub_common_op_fneg_vec(<2 x float> %x, <2 x float> %y) {
; CHECK-LABEL: @fsub_fsub_common_op_fneg_vec(
-; CHECK-NEXT: [[S:%.*]] = fsub <2 x float> [[Y:%.*]], [[X:%.*]]
-; CHECK-NEXT: [[R:%.*]] = fsub reassoc nsz <2 x float> [[S]], [[Y]]
+; CHECK-NEXT: [[R:%.*]] = fsub reassoc nsz <2 x float> <float -0.000000e+00, float -0.000000e+00>, [[X:%.*]]
; CHECK-NEXT: ret <2 x float> [[R]]
;
%s = fsub <2 x float> %y, %x
OpenPOWER on IntegriCloud