Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrCai0907 committed Apr 24, 2023
1 parent e92d362 commit c0e45cd
Show file tree
Hide file tree
Showing 150 changed files with 945 additions and 123 deletions.
7 changes: 7 additions & 0 deletions tests/compiler/bindings/esm.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/bindings/esm.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1696
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/bindings/noExportRuntime.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/bindings/noExportRuntime.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1536
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/bindings/raw.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/bindings/raw.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1696
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/call-super.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/call-super.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1440
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/class-implements.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/class-implements.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1392
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/class-overloading-cast.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/class-overloading-cast.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1392
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/class-overloading.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/class-overloading.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1424
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/class.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/class.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -620,9 +620,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1392
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/constructor.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/constructor.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1392
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/do.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/do.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -613,9 +613,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1424
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/duplicate-fields.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/duplicate-fields.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1392
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/empty-exportruntime.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/empty-exportruntime.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1392
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/empty-new.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
6 changes: 5 additions & 1 deletion tests/compiler/empty-new.release.wat
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,13 @@
(func $~lib/rt/tlsf/addMemory (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
local.get $2
i32.eqz
local.get $1
local.get $2
i32.gt_u
i32.le_u
i32.or
i32.eqz
if
i32.const 0
i32.const 1392
Expand Down
7 changes: 7 additions & 0 deletions tests/compiler/exportstar-rereexport.debug.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,13 @@
local.get $start
local.get $end
i32.le_u
if (result i32)
i32.const 1
else
local.get $end
i32.const 0
i32.eq
end
i32.eqz
if
i32.const 0
Expand Down
Loading

0 comments on commit c0e45cd

Please sign in to comment.