summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2014-01-16 20:59:41 +0000
committerOwen Anderson <resistor@mac.com>2014-01-16 20:59:41 +0000
commitda5e148474e717918af06024d0b2ead54373f3f9 (patch)
treea4e21b4816aef37e8f24da8b9bd95b26f0c6c1ef /test/Transforms/InstCombine
parent4b81ee4d9a115eb1f1edd6a938392ed75290ec8d (diff)
downloadllvm-da5e148474e717918af06024d0b2ead54373f3f9.tar.gz
llvm-da5e148474e717918af06024d0b2ead54373f3f9.tar.bz2
llvm-da5e148474e717918af06024d0b2ead54373f3f9.tar.xz
Fix a bug in InstCombine where we failed to preserve fast math flags when optimizing an FMUL expression.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r--test/Transforms/InstCombine/fmul.ll5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/Transforms/InstCombine/fmul.ll b/test/Transforms/InstCombine/fmul.ll
index 71b7138b64..0b4a90d88f 100644
--- a/test/Transforms/InstCombine/fmul.ll
+++ b/test/Transforms/InstCombine/fmul.ll
@@ -24,10 +24,10 @@ define float @test2(float %x) {
define float @test3(float %x, float %y) {
%sub1 = fsub float -0.000000e+00, %x
%sub2 = fsub float -0.000000e+00, %y
- %mul = fmul float %sub1, %sub2
+ %mul = fmul fast float %sub1, %sub2
ret float %mul
; CHECK-LABEL: @test3(
-; CHECK: fmul float %x, %y
+; CHECK: fmul fast float %x, %y
}
; (0.0 - X) * (0.0 - Y) => X * Y
@@ -104,4 +104,3 @@ define float @test9(float %x) {
; CHECK: fsub
}
-