summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/unit.wast12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/unit.wast b/test/unit.wast
index 0028554fc..9ebf440be 100644
--- a/test/unit.wast
+++ b/test/unit.wast
@@ -259,8 +259,16 @@
(set_local $asm2wasm_i32_temp
(i32.const 0)
)
- (set_local $asm2wasm_i32_temp
- (i32.const 0)
+ (i32.select
+ (i32.lt_s
+ (get_local $asm2wasm_i32_temp)
+ (i32.const 0)
+ )
+ (i32.sub
+ (i32.const 0)
+ (get_local $asm2wasm_i32_temp)
+ )
+ (get_local $asm2wasm_i32_temp)
)
)
)