From f5d8d30171e53c225fc640e6db8aa42973c8804c Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Thu, 8 Feb 2024 15:27:02 -0800 Subject: Update lit tests to parse with the new parser (#6290) Get as many of the lit tests as possible to parse with the new parser, mostly by moving declared module items to be after imports. Also fix a bug in the new parser's pop validation to allow supertypes of the expected type. The two big issues that still prevent some lit tests from working correctly under the new parser are missing support for symbolic field names and missing support for source map annotations. --- test/lit/passes/coalesce-locals-learning.wast | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/lit/passes/coalesce-locals-learning.wast') diff --git a/test/lit/passes/coalesce-locals-learning.wast b/test/lit/passes/coalesce-locals-learning.wast index 5451c68cd..689f7441b 100644 --- a/test/lit/passes/coalesce-locals-learning.wast +++ b/test/lit/passes/coalesce-locals-learning.wast @@ -4,7 +4,6 @@ ;; RUN: foreach %s %t wasm-opt --coalesce-locals-learning -S -o - | filecheck %s (module - (memory 10) ;; CHECK: (type $2 (func)) ;; CHECK: (type $FUNCSIG$iii (func (param i32 i32) (result i32))) @@ -18,8 +17,12 @@ (type $3 (func (param i32 f32))) ;; CHECK: (type $4 (func (param i32))) (type $4 (func (param i32))) + ;; CHECK: (import "env" "_emscripten_autodebug_i32" (func $_emscripten_autodebug_i32 (param i32 i32) (result i32))) (import "env" "_emscripten_autodebug_i32" (func $_emscripten_autodebug_i32 (param i32 i32) (result i32))) + + (memory 10) + ;; CHECK: (memory $0 10) ;; CHECK: (func $nothing-to-do -- cgit v1.2.3