summaryrefslogtreecommitdiff
path: root/test/passes
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2022-09-15 23:17:51 +0300
committerGitHub <noreply@github.com>2022-09-15 13:17:51 -0700
commit2fdb22bc26185e94ccd775bbfe8ea271be03df45 (patch)
tree7c9935698de035f905eafc247f547af6acd3aea1 /test/passes
parent0d8aff6d85850a5f05ed6f5dc359f1b93120769d (diff)
downloadbinaryen-2fdb22bc26185e94ccd775bbfe8ea271be03df45.tar.gz
binaryen-2fdb22bc26185e94ccd775bbfe8ea271be03df45.tar.bz2
binaryen-2fdb22bc26185e94ccd775bbfe8ea271be03df45.zip
[OptimizeInstructions] More canonizations for floating points (#5033)
x - C -> x + (-C) min(C, x) -> min(x, C) max(C, x) -> max(x, C) And remove redundant rules
Diffstat (limited to 'test/passes')
-rw-r--r--test/passes/optimize-instructions_fuzz-exec.txt28
1 files changed, 4 insertions, 24 deletions
diff --git a/test/passes/optimize-instructions_fuzz-exec.txt b/test/passes/optimize-instructions_fuzz-exec.txt
index 16b17cf26..33a3945dc 100644
--- a/test/passes/optimize-instructions_fuzz-exec.txt
+++ b/test/passes/optimize-instructions_fuzz-exec.txt
@@ -73,20 +73,10 @@
)
)
(call $logf32
- (f32.min
- (f32.const -nan:0x7fff82)
- (f32.neg
- (f32.const -nan:0x7ff622)
- )
- )
+ (f32.const nan:0x400000)
)
(call $logf32
- (f32.max
- (f32.const -nan:0x7fff82)
- (f32.neg
- (f32.const -nan:0x7ff622)
- )
- )
+ (f32.const nan:0x400000)
)
)
(func $1
@@ -126,20 +116,10 @@
)
)
(call $logf64
- (f64.min
- (f64.const -nan:0xfffffffffff82)
- (f64.neg
- (f64.const -nan:0xfffffffffa622)
- )
- )
+ (f64.const nan:0x8000000000000)
)
(call $logf64
- (f64.max
- (f64.const -nan:0xfffffffffff82)
- (f64.neg
- (f64.const -nan:0xfffffffffa622)
- )
- )
+ (f64.const nan:0x8000000000000)
)
)
(func $2