File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1- # RUN: llvm-mc -no-type-check - triple=wasm32-unknown-unknown -mattr=+exception-handling < %s | FileCheck %s
1+ # RUN: llvm-mc -triple=wasm32-unknown-unknown -mattr=+exception-handling < %s | FileCheck %s
22
33# Tests if block/loop/try/catch/end/branch/rethrow instructions are correctly
44# printed with their annotations.
@@ -12,15 +12,19 @@ test_annotation:
1212 try
1313 br 0
1414 catch __cpp_exception
15+ drop
1516 block
17+ i32.const 0
1618 br_if 0
1719 loop
20+ i32.const 0
1821 br_if 1
1922 end_loop
2023 end_block
2124 try
2225 rethrow 0
2326 catch __cpp_exception
27+ drop
2428 catch_all
2529 block
2630 try
@@ -56,15 +60,19 @@ test_annotation:
5660# CHECK: try
5761# CHECK-NEXT: br 0 # 0: down to label0
5862# CHECK-NEXT: catch __cpp_exception # catch0:
63+ # CHECK-NEXT: drop
5964# CHECK-NEXT: block
65+ # CHECK-NEXT: i32.const 0
6066# CHECK-NEXT: br_if 0 # 0: down to label1
6167# CHECK-NEXT: loop # label2:
68+ # CHECK-NEXT: i32.const 0
6269# CHECK-NEXT: br_if 1 # 1: down to label1
6370# CHECK-NEXT: end_loop
6471# CHECK-NEXT: end_block # label1:
6572# CHECK-NEXT: try
6673# CHECK-NEXT: rethrow 0 # down to catch3
6774# CHECK-NEXT: catch __cpp_exception # catch3:
75+ # CHECK-NEXT: drop
6876# CHECK-NEXT: catch_all{{$}}
6977# CHECK-NEXT: block
7078# CHECK-NEXT: try
You can’t perform that action at this time.
0 commit comments