summaryrefslogtreecommitdiff
path: root/test/lit/basic/unit.wat
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/basic/unit.wat')
-rw-r--r--test/lit/basic/unit.wat24
1 files changed, 14 insertions, 10 deletions
diff --git a/test/lit/basic/unit.wat b/test/lit/basic/unit.wat
index 8392a2269..4fc36b3b7 100644
--- a/test/lit/basic/unit.wat
+++ b/test/lit/basic/unit.wat
@@ -64,20 +64,23 @@
(type $9 (func (param i32 i64)))
;; CHECK-TEXT: (import "env" "_emscripten_asm_const_vi" (func $_emscripten_asm_const_vi (type $FUNCSIG$v)))
;; CHECK-BIN: (import "env" "_emscripten_asm_const_vi" (func $_emscripten_asm_const_vi (type $FUNCSIG$v)))
- ;; CHECK-BIN-NODEBUG: (import "env" "_emscripten_asm_const_vi" (func $fimport$0 (type $1)))
(import "env" "_emscripten_asm_const_vi" (func $_emscripten_asm_const_vi))
;; CHECK-TEXT: (import "asm2wasm" "f64-to-int" (func $f64-to-int (type $FUNCSIG$id) (param f64) (result i32)))
;; CHECK-BIN: (import "asm2wasm" "f64-to-int" (func $f64-to-int (type $FUNCSIG$id) (param f64) (result i32)))
- ;; CHECK-BIN-NODEBUG: (import "asm2wasm" "f64-to-int" (func $fimport$1 (type $5) (param f64) (result i32)))
(import "asm2wasm" "f64-to-int" (func $f64-to-int (param f64) (result i32)))
;; CHECK-TEXT: (import "asm2wasm" "f64-rem" (func $f64-rem (type $FUNCSIG$ddd) (param f64 f64) (result f64)))
;; CHECK-BIN: (import "asm2wasm" "f64-rem" (func $f64-rem (type $FUNCSIG$ddd) (param f64 f64) (result f64)))
- ;; CHECK-BIN-NODEBUG: (import "asm2wasm" "f64-rem" (func $fimport$2 (type $4) (param f64 f64) (result f64)))
(import "asm2wasm" "f64-rem" (func $f64-rem (param f64 f64) (result f64)))
(table 10 funcref)
(elem (i32.const 0) $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
;; CHECK-TEXT: (memory $0 4096 4096)
;; CHECK-BIN: (memory $0 4096 4096)
+ ;; CHECK-BIN-NODEBUG: (import "env" "_emscripten_asm_const_vi" (func $fimport$0 (type $1)))
+
+ ;; CHECK-BIN-NODEBUG: (import "asm2wasm" "f64-to-int" (func $fimport$1 (type $5) (param f64) (result i32)))
+
+ ;; CHECK-BIN-NODEBUG: (import "asm2wasm" "f64-rem" (func $fimport$2 (type $4) (param f64 f64) (result f64)))
+
;; CHECK-BIN-NODEBUG: (memory $0 4096 4096)
(memory $0 4096 4096)
(data (i32.const 1026) "\14\00")
@@ -95,13 +98,6 @@
;; CHECK-BIN: (elem $0 (i32.const 0) $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
;; CHECK-BIN: (export "big_negative" (func $big_negative))
- ;; CHECK-BIN-NODEBUG: (data $0 (i32.const 1026) "\14\00")
-
- ;; CHECK-BIN-NODEBUG: (table $0 10 funcref)
-
- ;; CHECK-BIN-NODEBUG: (elem $0 (i32.const 0) $17 $0 $17 $17 $18 $18 $1 $18 $17 $15)
-
- ;; CHECK-BIN-NODEBUG: (export "big_negative" (func $0))
(export "big_negative" (func $big_negative))
;; CHECK-TEXT: (func $big_negative (type $FUNCSIG$v)
;; CHECK-TEXT-NEXT: (local $temp f64)
@@ -1743,6 +1739,14 @@
)
)
)
+;; CHECK-BIN-NODEBUG: (data $0 (i32.const 1026) "\14\00")
+
+;; CHECK-BIN-NODEBUG: (table $0 10 funcref)
+
+;; CHECK-BIN-NODEBUG: (elem $0 (i32.const 0) $17 $0 $17 $17 $18 $18 $1 $18 $17 $15)
+
+;; CHECK-BIN-NODEBUG: (export "big_negative" (func $0))
+
;; CHECK-BIN-NODEBUG: (func $0 (type $1)
;; CHECK-BIN-NODEBUG-NEXT: (local $0 f64)
;; CHECK-BIN-NODEBUG-NEXT: (local.set $0