summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-02-28 22:30:04 +0000
committerSanjay Patel <spatel@rotateright.com>2018-02-28 22:30:04 +0000
commiteaf5a120edd4001874ae1c36469bf783d5c75488 (patch)
tree78de3b03e36dbd5c1cb919d73e613e5d60452026 /llvm/test/Transforms
parent9ca064552a7c38798f763b64113ae74bf04a0b23 (diff)
downloadbcm5719-llvm-eaf5a120edd4001874ae1c36469bf783d5c75488.tar.gz
bcm5719-llvm-eaf5a120edd4001874ae1c36469bf783d5c75488.zip
[InstCombine] simplify code for X * -1.0 --> -X; NFC
I've added random FMF to one of the tests to show those are propagated. llvm-svn: 326377
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/InstCombine/fmul.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Transforms/InstCombine/fmul.ll b/llvm/test/Transforms/InstCombine/fmul.ll
index 2eaa7c3e761..34e0047946c 100644
--- a/llvm/test/Transforms/InstCombine/fmul.ll
+++ b/llvm/test/Transforms/InstCombine/fmul.ll
@@ -153,10 +153,10 @@ define float @test9(float %x) {
; PR18532
define <4 x float> @test10(<4 x float> %x) {
; CHECK-LABEL: @test10(
-; CHECK-NEXT: [[MUL:%.*]] = fsub <4 x float> <float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00>, [[X:%.*]]
+; CHECK-NEXT: [[MUL:%.*]] = fsub arcp afn <4 x float> <float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00>, [[X:%.*]]
; CHECK-NEXT: ret <4 x float> [[MUL]]
;
- %mul = fmul <4 x float> %x, <float -1.0, float -1.0, float -1.0, float -1.0>
+ %mul = fmul arcp afn <4 x float> %x, <float -1.0, float -1.0, float -1.0, float -1.0>
ret <4 x float> %mul
}
OpenPOWER on IntegriCloud