summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorMichael Ilseman <milseman@apple.com>2013-02-07 01:40:15 +0000
committerMichael Ilseman <milseman@apple.com>2013-02-07 01:40:15 +0000
commit1dd6f2a5ba0b92bad890505317dde76b056855e0 (patch)
treebfe00166efd6554f784bee292307cfabe5789985 /llvm/test/Transforms
parentf5f43546b3d63380bbb5fda4e4b012a0cf9c0a34 (diff)
downloadbcm5719-llvm-1dd6f2a5ba0b92bad890505317dde76b056855e0.tar.gz
bcm5719-llvm-1dd6f2a5ba0b92bad890505317dde76b056855e0.zip
Preserve fast-math flags after reassociation and commutation. Update test cases
llvm-svn: 174571
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/InstCombine/fast-math.ll8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstCombine/fast-math.ll b/llvm/test/Transforms/InstCombine/fast-math.ll
index 4de0c8234f9..c97bd28222b 100644
--- a/llvm/test/Transforms/InstCombine/fast-math.ll
+++ b/llvm/test/Transforms/InstCombine/fast-math.ll
@@ -7,7 +7,7 @@ define float @fold(float %a) {
%mul1 = fmul fast float %mul, 0x4002666660000000
ret float %mul1
; CHECK: @fold
-; CHECK: fmul float %a, 0x4006147AE0000000
+; CHECK: fmul fast float %a, 0x4006147AE0000000
}
; Same testing-case as the one used in fold() except that the operators have
@@ -22,7 +22,7 @@ define float @notfold(float %a) {
define float @fold2(float %a) {
; CHECK: @fold2
-; CHECK: fmul float %a, 0x4006147AE0000000
+; CHECK: fmul fast float %a, 0x4006147AE0000000
%mul = fmul float %a, 0x3FF3333340000000
%mul1 = fmul fast float %mul, 0x4002666660000000
ret float %mul1
@@ -54,7 +54,7 @@ define float @fold5(float %f1, float %f2) {
%add1 = fadd fast float %add, 5.000000e+00
ret float %add1
; CHECK: @fold5
-; CHECK: fadd float %f1, 9.000000e+00
+; CHECK: fadd fast float %f1, 9.000000e+00
}
; (X + X) + X => 3.0 * X
@@ -107,7 +107,7 @@ define float @fold10(float %f1, float %f2) {
%t3 = fadd fast float %t1, %t2
ret float %t3
; CHECK: @fold10
-; CHECK: %t3 = fadd float %t2, -1.000000e+00
+; CHECK: %t3 = fadd fast float %t2, -1.000000e+00
; CHECK: ret float %t3
}
OpenPOWER on IntegriCloud