From 74526f3effdab0d5bca9cb122989335b6527e76f Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 4 Nov 2019 15:17:46 -0800 Subject: OptimizeInstructions: Eq64 of 0 => Eqz64 (#2421) Fixes #2417 --- test/passes/optimize-instructions_enable-threads.wast | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/passes/optimize-instructions_enable-threads.wast') diff --git a/test/passes/optimize-instructions_enable-threads.wast b/test/passes/optimize-instructions_enable-threads.wast index dfcaea597..243cb79d7 100644 --- a/test/passes/optimize-instructions_enable-threads.wast +++ b/test/passes/optimize-instructions_enable-threads.wast @@ -212,6 +212,24 @@ (i32.const 0) ) ) + (drop + (i64.eq + (i64.const 100) + (i64.const 0) + ) + ) + (drop + (i64.eq + (i64.const 0) + (i64.const 100) + ) + ) + (drop + (i64.eq + (i64.const 0) + (i64.const 0) + ) + ) (if (i32.eqz (i32.eqz -- cgit v1.2.3