File tree 1 file changed +9
-1
lines changed 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
2
2
3
3
# Tests if block/loop/try/catch/end/branch/rethrow instructions are correctly
4
4
# printed with their annotations.
@@ -12,15 +12,19 @@ test_annotation:
12
12
try
13
13
br 0
14
14
catch __cpp_exception
15
+ drop
15
16
block
17
+ i32.const 0
16
18
br_if 0
17
19
loop
20
+ i32.const 0
18
21
br_if 1
19
22
end_loop
20
23
end_block
21
24
try
22
25
rethrow 0
23
26
catch __cpp_exception
27
+ drop
24
28
catch_all
25
29
block
26
30
try
@@ -56,15 +60,19 @@ test_annotation:
56
60
# CHECK: try
57
61
# CHECK-NEXT: br 0 # 0: down to label0
58
62
# CHECK-NEXT: catch __cpp_exception # catch0:
63
+ # CHECK-NEXT: drop
59
64
# CHECK-NEXT: block
65
+ # CHECK-NEXT: i32.const 0
60
66
# CHECK-NEXT: br_if 0 # 0: down to label1
61
67
# CHECK-NEXT: loop # label2:
68
+ # CHECK-NEXT: i32.const 0
62
69
# CHECK-NEXT: br_if 1 # 1: down to label1
63
70
# CHECK-NEXT: end_loop
64
71
# CHECK-NEXT: end_block # label1:
65
72
# CHECK-NEXT: try
66
73
# CHECK-NEXT: rethrow 0 # down to catch3
67
74
# CHECK-NEXT: catch __cpp_exception # catch3:
75
+ # CHECK-NEXT: drop
68
76
# CHECK-NEXT: catch_all{{$}}
69
77
# CHECK-NEXT: block
70
78
# CHECK-NEXT: try
You can’t perform that action at this time.
0 commit comments