From 41b365e99ffd68f427b561121c364028f2c2d2f9 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Tue, 6 Feb 2024 13:06:28 -0800 Subject: Make `array.new_fixed` length annotations mandatory (#6277) They were previously optional to ease the transition to the standard text format, but now we can make them mandatory to match the spec. This will simplify the new text parser as well. --- test/lit/array-new-fixed.wast | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 test/lit/array-new-fixed.wast (limited to 'test/lit/array-new-fixed.wast') diff --git a/test/lit/array-new-fixed.wast b/test/lit/array-new-fixed.wast deleted file mode 100644 index 60fbc7c93..000000000 --- a/test/lit/array-new-fixed.wast +++ /dev/null @@ -1,36 +0,0 @@ -;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited. -;; RUN: wasm-opt -all %s -S -o - | filecheck %s - -;; Check that we can optionally specify the size of the array. -(module - ;; CHECK: (type $array (array i32)) - (type $array (array i32)) - ;; CHECK: (func $test (type $1) - ;; CHECK-NEXT: (drop - ;; CHECK-NEXT: (array.new_fixed $array 2 - ;; CHECK-NEXT: (i32.const 0) - ;; CHECK-NEXT: (i32.const 1) - ;; CHECK-NEXT: ) - ;; CHECK-NEXT: ) - ;; CHECK-NEXT: (drop - ;; CHECK-NEXT: (array.new_fixed $array 2 - ;; CHECK-NEXT: (i32.const 0) - ;; CHECK-NEXT: (i32.const 1) - ;; CHECK-NEXT: ) - ;; CHECK-NEXT: ) - ;; CHECK-NEXT: ) - (func $test - (drop - (array.new_fixed $array - (i32.const 0) - (i32.const 1) - ) - ) - (drop - (array.new_fixed $array 2 - (i32.const 0) - (i32.const 1) - ) - ) - ) -) -- cgit v1.2.3