66
77local_get_no_local_type:
88 .functype local_get_no_local_type () -> ()
9- # FIXME: Error location should be at operand.
10- # CHECK: :[[@LINE+1]]:3: error: no local type specified for index 0
9+ # CHECK: :[[@LINE+1]]:13: error: no local type specified for index 0
1110 local.get 0
1211 end_function
1312
1413local_set_no_local_type:
1514 .functype local_set_no_local_type () -> ()
16- # FIXME: Error location should be at operand.
17- # CHECK: :[[@LINE+1]]:3: error: no local type specified for index 0
15+ # CHECK: :[[@LINE+1]]:13: error: no local type specified for index 0
1816 local.set 0
1917 end_function
2018
@@ -35,8 +33,7 @@ local_set_type_mismatch:
3533
3634local_tee_no_local_type:
3735 .functype local_tee_no_local_type () -> ()
38- # FIXME: Error location should be at operand.
39- # CHECK: :[[@LINE+1]]:3: error: no local type specified for index 0
36+ # CHECK: :[[@LINE+1]]:13: error: no local type specified for index 0
4037 local.tee 0
4138 end_function
4239
@@ -57,29 +54,27 @@ local_tee_type_mismatch:
5754
5855global_get_missing_globaltype:
5956 .functype global_get_missing_globaltype () -> ()
60- # FIXME: Error location should be at operand.
61- # CHECK: :[[@LINE+1]]:3 : error: symbol foo missing .globaltype
57+ # FIXME: Error location should be at beginning of operand.
58+ # CHECK: :[[@LINE+1]]:17 : error: symbol foo missing .globaltype
6259 global.get foo
6360 end_function
6461
6562global_get_expected_expression_operand:
6663 .functype global_get_expected_expression_operand () -> ()
67- # FIXME: Error location should be at operand.
68- # CHECK: :[[@LINE+1]]:3: error: expected expression operand
64+ # CHECK: :[[@LINE+1]]:14: error: expected expression operand
6965 global.get 1
7066 end_function
7167
7268global_set_missing_globaltype:
7369 .functype global_set_missing_globaltype () -> ()
74- # FIXME: Error location should be at operand.
75- # CHECK: :[[@LINE+1]]:3 : error: symbol foo missing .globaltype
70+ # FIXME: Error location should be at beginning of operand.
71+ # CHECK: :[[@LINE+1]]:17 : error: symbol foo missing .globaltype
7672 global.set foo
7773 end_function
7874
7975global_set_expected_expression_operand:
8076 .functype global_set_expected_expression_operand () -> ()
81- # FIXME: Error location should be at operand.
82- # CHECK: :[[@LINE+1]]:3: error: expected expression operand
77+ # CHECK: :[[@LINE+1]]:14: error: expected expression operand
8378 global.set 1
8479 end_function
8580
@@ -100,15 +95,14 @@ global_set_type_mismatch:
10095
10196table_get_expected_expression_operand:
10297 .functype table_get_expected_expression_operand () -> ()
103- # FIXME: Error location should be at operand.
104- # CHECK: :[[@LINE+1]]:3: error: expected expression operand
98+ # CHECK: :[[@LINE+1]]:13: error: expected expression operand
10599 table.get 1
106100 end_function
107101
108102table_get_missing_tabletype:
109103 .functype table_get_missing_tabletype () -> ()
110- # FIXME: Error location should be at operand.
111- # CHECK: :[[@LINE+1]]:3 : error: symbol foo missing .tabletype
104+ # FIXME: Error location should be at beginning of operand.
105+ # CHECK: :[[@LINE+1]]:16 : error: symbol foo missing .tabletype
112106 table.get foo
113107 end_function
114108
@@ -129,15 +123,14 @@ table_get_type_mismatch:
129123
130124table_set_expected_expression_operand:
131125 .functype table_set_expected_expression_operand () -> ()
132- # FIXME: Error location should be at operand.
133- # CHECK: :[[@LINE+1]]:3: error: expected expression operand
126+ # CHECK: :[[@LINE+1]]:13: error: expected expression operand
134127 table.set 1
135128 end_function
136129
137130table_set_missing_tabletype:
138131 .functype table_set_missing_tabletype () -> ()
139- # FIXME: Error location should be at operand .
140- # CHECK: :[[@LINE+1]]:3 : error: symbol foo missing .tabletype
132+ # FIXME: Error location should be at beginning ofoperand .
133+ # CHECK: :[[@LINE+1]]:16 : error: symbol foo missing .tabletype
141134 table.set foo
142135 end_function
143136
@@ -171,15 +164,14 @@ table_set_type_mismatch_2:
171164
172165table_fill_expected_expression_operand:
173166 .functype table_fill_expected_expression_operand () -> ()
174- # FIXME: Error location should be at operand.
175- # CHECK: :[[@LINE+1]]:3: error: expected expression operand
167+ # CHECK: :[[@LINE+1]]:14: error: expected expression operand
176168 table.fill 1
177169 end_function
178170
179171table_fill_missing_tabletype:
180172 .functype table_fill_missing_tabletype () -> ()
181- # FIXME: Error location should be at operand.
182- # CHECK: :[[@LINE+1]]:3 : error: symbol foo missing .tabletype
173+ # FIXME: Error location should be at beginning of operand.
174+ # CHECK: :[[@LINE+1]]:17 : error: symbol foo missing .tabletype
183175 table.fill foo
184176 end_function
185177
@@ -397,8 +389,7 @@ return_call_indirect_empty_stack_while_popping_2:
397389
398390call_expected_expression_operand:
399391 .functype call_expected_expression_operand () -> ()
400- # FIXME: Error location should be at operand.
401- # CHECK: :[[@LINE+1]]:3: error: expected expression operand
392+ # CHECK: :[[@LINE+1]]:8: error: expected expression operand
402393 call 1
403394 end_function
404395
@@ -427,14 +418,14 @@ call_superfluous_value_at_end:
427418
428419call_missing_functype:
429420 .functype call_missing_functype () -> ()
430- # CHECK: :[[@LINE+1]]:3: error: symbol no_functype missing .functype
421+ # FIXME: Error location should be at beginning of operand.
422+ # CHECK: :[[@LINE+1]]:19: error: symbol no_functype missing .functype
431423 call no_functype
432424 end_function
433425
434426return_call_expected_expression_operand:
435427 .functype return_call_expected_expression_operand () -> ()
436- # FIXME: Error location should be at operand.
437- # CHECK: :[[@LINE+1]]:3: error: expected expression operand
428+ # CHECK: :[[@LINE+1]]:15: error: expected expression operand
438429 return_call 1
439430 end_function
440431
@@ -453,25 +444,24 @@ return_call_type_mismatch:
453444
454445return_call_missing_functype:
455446 .functype return_call_missing_functype () -> ()
456- # FIXME: Error location should be at operand.
457- # CHECK: :[[@LINE+1]]:3 : error: symbol no_functype missing .functype
447+ # FIXME: Error location should be at beginning of operand.
448+ # CHECK: :[[@LINE+1]]:26 : error: symbol no_functype missing .functype
458449 return_call no_functype
459450 end_function
460451
461452catch_expected_expression_operand:
462453 .functype catch_expected_expression_operand () -> ()
463454 try
464- # FIXME: Error location should be at operand.
465- # CHECK: :[[@LINE+1]]:3: error: expected expression operand
455+ # CHECK: :[[@LINE+1]]:9: error: expected expression operand
466456 catch 1
467457 end_try
468458 end_function
469459
470460catch_missing_tagtype:
471461 .functype catch_missing_tagtype () -> ()
472462 try
473- # FIXME: Error location should be at operand.
474- # CHECK: :[[@LINE+1]]:3 : error: symbol no_tagtype missing .tagtype
463+ # FIXME: Error location should be at beginning of operand.
464+ # CHECK: :[[@LINE+1]]:19 : error: symbol no_tagtype missing .tagtype
475465 catch no_tagtype
476466 end_try
477467 end_function
0 commit comments