summaryrefslogtreecommitdiff
path: root/test/two_sides.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-11-27 09:26:29 -0800
committerGitHub <noreply@github.com>2018-11-27 09:26:29 -0800
commit70b949ffdc3e5f3fa83dd4044f632c95159674cf (patch)
treec2bb05065cd082305cad594e76a169d1a8005a9a /test/two_sides.fromasm.imprecise
parent69c93dd9fb4cf8081237c4303a416bf12dff6b58 (diff)
downloadbinaryen-70b949ffdc3e5f3fa83dd4044f632c95159674cf.tar.gz
binaryen-70b949ffdc3e5f3fa83dd4044f632c95159674cf.tar.bz2
binaryen-70b949ffdc3e5f3fa83dd4044f632c95159674cf.zip
Stricter Canonicalization (#1774)
In OptimizeInstructions we canonicalized a const on the right side. This PR adds further canonicalization, of a get to the right, and of sorting by binary and unary op ids. This guarantees fixed orders for small combinations of instructions that can then be pattern-matched in a simple way in future PRs.
Diffstat (limited to 'test/two_sides.fromasm.imprecise')
-rw-r--r--test/two_sides.fromasm.imprecise4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/two_sides.fromasm.imprecise b/test/two_sides.fromasm.imprecise
index 9115e679a..09aa8270d 100644
--- a/test/two_sides.fromasm.imprecise
+++ b/test/two_sides.fromasm.imprecise
@@ -13,8 +13,8 @@
(tee_local $5
(f64.convert_s/i32
(i32.mul
- (get_local $1)
(get_local $0)
+ (get_local $1)
)
)
)
@@ -36,8 +36,8 @@
(tee_local $5
(f64.convert_s/i32
(i32.mul
- (get_local $3)
(get_local $2)
+ (get_local $3)
)
)
)