diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-11-17 10:37:42 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-11-17 10:37:42 -0500 |
commit | 23f736059c704b95643dfc63425444044b57a973 (patch) | |
tree | c55a7c438b96f5dac0e7b22cef16871ab9466198 | |
parent | f5870b0f36bec3579e54994abcca9b809c056e1b (diff) | |
download | bcm5719-llvm-23f736059c704b95643dfc63425444044b57a973.tar.gz bcm5719-llvm-23f736059c704b95643dfc63425444044b57a973.zip |
[SimplifyCFG] add fast-math-flags to tests for better coverage; NFC
The conversion to select fails to propagate FMF.
-rw-r--r-- | llvm/test/Transforms/SimplifyCFG/speculate-math.ll | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/speculate-math.ll b/llvm/test/Transforms/SimplifyCFG/speculate-math.ll index e3fe5ed2fda..4c8d8b1e120 100644 --- a/llvm/test/Transforms/SimplifyCFG/speculate-math.ll +++ b/llvm/test/Transforms/SimplifyCFG/speculate-math.ll @@ -28,7 +28,7 @@ cond.true: br label %cond.end cond.end: - %cond = phi double [ %div, %cond.true ], [ 0.0, %entry ] + %cond = phi nsz double [ %div, %cond.true ], [ 0.0, %entry ] ret double %cond } @@ -50,7 +50,7 @@ cond.else.i: ; preds = %entry br label %test_sqrt.exit test_sqrt.exit: ; preds = %cond.else.i, %entry - %cond.i = phi float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] + %cond.i = phi afn float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] store float %cond.i, float addrspace(1)* %out, align 4 ret void } @@ -73,7 +73,7 @@ cond.else.i: ; preds = %entry br label %test_fabs.exit test_fabs.exit: ; preds = %cond.else.i, %entry - %cond.i = phi float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] + %cond.i = phi reassoc float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] store float %cond.i, float addrspace(1)* %out, align 4 ret void } @@ -96,7 +96,7 @@ cond.else.i: ; preds = %entry br label %test_fma.exit test_fma.exit: ; preds = %cond.else.i, %entry - %cond.i = phi float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] + %cond.i = phi nsz reassoc float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] store float %cond.i, float addrspace(1)* %out, align 4 ret void } @@ -119,7 +119,7 @@ cond.else.i: ; preds = %entry br label %test_fmuladd.exit test_fmuladd.exit: ; preds = %cond.else.i, %entry - %cond.i = phi float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] + %cond.i = phi ninf float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] store float %cond.i, float addrspace(1)* %out, align 4 ret void } @@ -165,7 +165,7 @@ cond.else.i: ; preds = %entry br label %test_maxnum.exit test_maxnum.exit: ; preds = %cond.else.i, %entry - %cond.i = phi float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] + %cond.i = phi ninf nsz float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] store float %cond.i, float addrspace(1)* %out, align 4 ret void } @@ -188,7 +188,7 @@ cond.else.i: ; preds = %entry br label %test_minimum.exit test_minimum.exit: ; preds = %cond.else.i, %entry - %cond.i = phi float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] + %cond.i = phi reassoc float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] store float %cond.i, float addrspace(1)* %out, align 4 ret void } @@ -211,7 +211,7 @@ cond.else.i: ; preds = %entry br label %test_maximum.exit test_maximum.exit: ; preds = %cond.else.i, %entry - %cond.i = phi float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] + %cond.i = phi nsz float [ %0, %cond.else.i ], [ 0x7FF8000000000000, %entry ] store float %cond.i, float addrspace(1)* %out, align 4 ret void } |