diff options
Diffstat (limited to 'test/passes/optimize-instructions.wast')
-rw-r--r-- | test/passes/optimize-instructions.wast | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions.wast b/test/passes/optimize-instructions.wast index 85709c7ca..f3a6b1329 100644 --- a/test/passes/optimize-instructions.wast +++ b/test/passes/optimize-instructions.wast @@ -3385,6 +3385,48 @@ ) ) ) + (func $all_ones (param $x i32) (param $y i64) + (drop + (i32.and + (get_local $x) + (i32.const -1) + ) + ) + (drop + (i32.or + (get_local $x) + (i32.const -1) + ) + ) + (drop + (i32.or + (tee_local $x + (i32.const 1337) + ) + (i32.const -1) + ) + ) + (drop + (i64.and + (get_local $y) + (i64.const -1) + ) + ) + (drop + (i64.or + (get_local $y) + (i64.const -1) + ) + ) + ) + (func $xor (param $x i32) (param $y i64) + (drop + (i32.xor + (get_local $x) + (i32.const 0) + ) + ) + ) ) (module (import "env" "memory" (memory $0 (shared 256 256))) |