summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.clamp.no-opts
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.fromasm.clamp.no-opts')
-rw-r--r--test/unit.fromasm.clamp.no-opts7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit.fromasm.clamp.no-opts b/test/unit.fromasm.clamp.no-opts
index 7a30149ba..95cb543e2 100644
--- a/test/unit.fromasm.clamp.no-opts
+++ b/test/unit.fromasm.clamp.no-opts
@@ -31,6 +31,7 @@
(global $tempDoublePtr (mut i32) (global.get $tempDoublePtr$asm2wasm$import))
(global $n (mut i32) (global.get $n$asm2wasm$import))
(global $STACKTOP (mut i32) (global.get $STACKTOP$asm2wasm$import))
+ (global $nonZero (mut i32) (i32.const 1337))
(global $exportedNumber i32 (i32.const 42))
(export "big_negative" (func $big_negative))
(export "pick" (func $exportMe))
@@ -2215,6 +2216,12 @@
(f64.const 9.78)
)
)
+ (global.set $nonZero
+ (i32.add
+ (global.get $nonZero)
+ (i32.const 1)
+ )
+ )
)
(func $v (; 83 ;)
(nop)