Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/lit/debug/source-map-stop.wast
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited.

;; RUN: wasm-opt %s -g -o %s.wasm -osm %s.wasm.map
;; RUN: wasm-opt %s.wasm -ism %s.wasm.map -S -o - | filecheck %s
;; RUN: wasm-opt %s -g -o %t.wasm -osm %t.wasm.map
;; RUN: wasm-opt %t.wasm -ism %t.wasm.map -S -o - | filecheck %s

;; Verify that writing to a source map and reading it back does not "smear"
;; debug info across adjacent instructions. The debug info in the output should
Expand Down
4 changes: 2 additions & 2 deletions test/lit/downgrade-reftypes.wast
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited.

;; Write to a binary, lowering away refined GC types.
;; RUN: wasm-as %s -all --disable-gc -g -o %s.wasm
;; RUN: wasm-as %s -all --disable-gc -g -o %t.wasm

;; Read it back and verify that the types were lowered away.
;; RUN: wasm-dis %s.wasm -all -o - | filecheck %s
;; RUN: wasm-dis %t.wasm -all -o - | filecheck %s

(module

Expand Down
12 changes: 6 additions & 6 deletions test/lit/passes/experimental-new_eh.wast
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
;; When given alone, --experimental-new-eh just runs --translate-to-new-eh
;; RUN: wasm-opt %s -all --translate-to-new-eh -S -o %a.wasm
;; RUN: wasm-opt %s -all --experimental-new-eh -S -o %b.wasm
;; RUN: diff %a.wasm %b.wasm
;; RUN: wasm-opt %s -all --translate-to-new-eh -S -o %t1.wasm
;; RUN: wasm-opt %s -all --experimental-new-eh -S -o %t2.wasm
;; RUN: diff %t1.wasm %t2.wasm

;; When given with other flags, --experimental-new-eh runs the translator after
;; running other passes. If --optimize-level >=3, --experimenal-new-eh also runs
;; StackIR (+ local2stack) optimization. So running '-O --experimental-new-eh'
;; should be the same as running all these passes separately.
;; RUN: wasm-opt %s -all -O --translate-to-new-eh --optimize-level=3 --generate-stack-ir --optimize-stack-ir -o %a.wasm
;; RUN: wasm-opt %s -all -O --experimental-new-eh -o %b.wasm
;; RUN: diff %a.wasm %b.wasm
;; RUN: wasm-opt %s -all -O --translate-to-new-eh --optimize-level=3 --generate-stack-ir --optimize-stack-ir -o %t1.wasm
;; RUN: wasm-opt %s -all -O --experimental-new-eh -o %t2.wasm
;; RUN: diff %t1.wasm %t2.wasm

(module
(import "env" "foo" (func $foo))
Expand Down