File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/test/core/gc/array_fill.wast b/test/core/gc/array_fill.wast
2
+ index 0379ad53..73122178 100644
3
+ --- a/test/core/gc/array_fill.wast
4
+ +++ b/test/core/gc/array_fill.wast
5
+ @@ -79,3 +79,22 @@
6
+ (assert_return (invoke "array_get_nth" (i32.const 2)) (i32.const 11))
7
+ (assert_return (invoke "array_get_nth" (i32.const 3)) (i32.const 11))
8
+ (assert_return (invoke "array_get_nth" (i32.const 4)) (i32.const 0))
9
+ +
10
+ + ;; fill the whole array
11
+ + (assert_return (invoke "array_fill" (i32.const 0) (i32.const 42) (i32.const 12)))
12
+ + (assert_return (invoke "array_get_nth" (i32.const 0)) (i32.const 42))
13
+ + (assert_return (invoke "array_get_nth" (i32.const 2)) (i32.const 42))
14
+ + (assert_return (invoke "array_get_nth" (i32.const 5)) (i32.const 42))
15
+ + (assert_return (invoke "array_get_nth" (i32.const 11)) (i32.const 42))
16
+ +
17
+ + ;; fill the first element
18
+ + (assert_return (invoke "array_fill" (i32.const 0) (i32.const 7) (i32.const 1)))
19
+ + (assert_return (invoke "array_get_nth" (i32.const 0)) (i32.const 7))
20
+ + (assert_return (invoke "array_get_nth" (i32.const 1)) (i32.const 42))
21
+ + (assert_return (invoke "array_get_nth" (i32.const 11)) (i32.const 42))
22
+ +
23
+ + ;; fill the last 2 elements
24
+ + (assert_return (invoke "array_fill" (i32.const 10) (i32.const 9) (i32.const 2)))
25
+ + (assert_return (invoke "array_get_nth" (i32.const 9)) (i32.const 42))
26
+ + (assert_return (invoke "array_get_nth" (i32.const 10)) (i32.const 9))
27
+ + (assert_return (invoke "array_get_nth" (i32.const 11)) (i32.const 9))
Original file line number Diff line number Diff line change @@ -478,6 +478,7 @@ function spec_test()
478
478
# Dec 9, 2024. Merge branch 'funcref'
479
479
git reset --hard 756060f5816c7e2159f4817fbdee76cf52f9c923
480
480
git apply --ignore-whitespace ../../spec-test-script/gc_ignore_cases.patch || exit 1
481
+ git apply --ignore-whitespace ../../spec-test-script/gc_array_fill_cases.patch || exit 1
481
482
482
483
if [[ ${ENABLE_QEMU} == 1 ]]; then
483
484
# Decrease the recursive count for tail call cases as nuttx qemu's
You can’t perform that action at this time.
0 commit comments