From 68dc2eddc24844c7582cafa85afeb4023a47888f Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Mon, 12 Jun 2017 16:50:28 -0700 Subject: Support new result syntax for if/loop/block (#1047) Support both syntax formats in input since the old spec tests still need to be parsable. --- ...ptimize-instructions_optimize-level=2_ignore-implicit-traps.wast | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast') diff --git a/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast b/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast index 7874907f3..e1215fa3f 100644 --- a/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast +++ b/test/passes/optimize-instructions_optimize-level=2_ignore-implicit-traps.wast @@ -23,7 +23,7 @@ ) ) (set_local $0 - (if i32 + (if (result i32) (i32.or ;; this or is very expensive. we should compute one side, then see if we even need the other (i32.eqz (i32.rem_s @@ -109,7 +109,7 @@ ) ) (set_local $0 - (if i32 + (if (result i32) (i32.or ;; this or is very expensive, but has a side effect on both sides (i32.eqz (i32.rem_s @@ -195,7 +195,7 @@ ) ) (set_local $0 - (if i32 + (if (result i32) (i32.or ;; this or is very expensive, and the first side has no side effect (i32.eqz (i32.rem_s -- cgit v1.2.3