Skip to content

Commit 9d214ea

Browse files
committed
[WebAssembly] Update CodeGen test expectations
1 parent fbe49bb commit 9d214ea

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

llvm/test/CodeGen/WebAssembly/unsupported-function-bitcasts.ll

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ declare i32 @has_ptr_arg(ptr)
1010

1111
; CHECK-LABEL: test_invalid_rtn:
1212
; CHECK: i32.const $push[[L0:[0-9]+]]=, 0{{$}}
13-
; CHECK-NEXT: call $push[[L1:[0-9]+]]=, .Lhas_i64_arg_bitcast_invalid.2, $pop[[L0]]{{$}}
14-
; CHECK-NEXT: drop $pop[[L1]]{{$}}
15-
; CHECK-NEXT: i64.const $push[[L0:[0-9]+]]=, 0{{$}}
16-
; CHECK-NEXT: call $push[[L1:[0-9]+]]=, .Lhas_i64_arg_bitcast_invalid, $pop[[L0]]{{$}}
13+
; CHECK-NEXT: call $push[[L1:[0-9]+]]=, .Lhas_i64_arg_bitcast_invalid.1, $pop[[L0]]{{$}}
1714
; CHECK-NEXT: drop $pop[[L1]]{{$}}
15+
; CHECK-NEXT: i64.const $push[[L2:[0-9]+]]=, 0{{$}}
16+
; CHECK-NEXT: call $push[[L3:[0-9]+]]=, .Lhas_i64_arg_bitcast_invalid, $pop[[L2]]{{$}}
17+
; CHECK-NEXT: drop $pop[[L3]]{{$}}
1818
; CHECK-NEXT: end_function
1919
define void @test_invalid_rtn() {
2020
entry:
@@ -32,14 +32,14 @@ define void @test_struct_rtn() {
3232

3333
; CHECK-LABEL: test_invalid_arg:
3434
; CHECK: i32.const $push[[L0:[0-9]+]]=, 2{{$}}
35-
; CHECK-NEXT: call $push[[L1:[0-9]+]]=, .Lhas_ptr_arg_bitcast_invalid.4, $pop[[L0]]{{$}}
36-
; CHECK-NEXT: drop $pop[[L1]]{{$}}
37-
; CHECK-NEXT: i32.const $push[[L0:[0-9]+]]=, 2{{$}}
38-
; CHECK-NEXT: call $push[[L1:[0-9]+]]=, has_ptr_arg, $pop[[L0]]{{$}}
39-
; CHECK-NEXT: drop $pop[[L1]]{{$}}
40-
; CHECK-NEXT: i64.const $push[[L0:[0-9]+]]=, 3{{$}}
41-
; CHECK-NEXT: call $push[[L1:[0-9]+]]=, .Lhas_ptr_arg_bitcast_invalid, $pop[[L0]]{{$}}
35+
; CHECK-NEXT: call $push[[L1:[0-9]+]]=, .Lhas_ptr_arg_bitcast_invalid.2, $pop[[L0]]{{$}}
4236
; CHECK-NEXT: drop $pop[[L1]]{{$}}
37+
; CHECK-NEXT: i32.const $push[[L2:[0-9]+]]=, 2{{$}}
38+
; CHECK-NEXT: call $push[[L3:[0-9]+]]=, has_ptr_arg, $pop[[L2]]{{$}}
39+
; CHECK-NEXT: drop $pop[[L3]]{{$}}
40+
; CHECK-NEXT: i64.const $push[[L4:[0-9]+]]=, 3{{$}}
41+
; CHECK-NEXT: call $push[[L5:[0-9]+]]=, .Lhas_ptr_arg_bitcast_invalid, $pop[[L4]]{{$}}
42+
; CHECK-NEXT: drop $pop[[L5]]{{$}}
4343
; CHECK-NEXT: end_function
4444
define void @test_invalid_arg() {
4545
entry:
@@ -54,8 +54,8 @@ entry:
5454
; CHECK-NEXT: unreachable
5555
; CHECK-NEXT: end_function
5656

57-
; CHECK-LABEL: .Lhas_i64_arg_bitcast_invalid.2:
58-
; CHECK-NEXT: .functype .Lhas_i64_arg_bitcast_invalid.2 (i32) -> (i32)
57+
; CHECK-LABEL: .Lhas_i64_arg_bitcast_invalid.1:
58+
; CHECK-NEXT: .functype .Lhas_i64_arg_bitcast_invalid.1 (i32) -> (i32)
5959
; CHECK-NEXT: unreachable
6060
; CHECK-NEXT: end_function
6161

@@ -64,7 +64,7 @@ entry:
6464
; CHECK-NEXT: unreachable
6565
; CHECK-NEXT: end_function
6666

67-
; CHECK-LABEL: .Lhas_ptr_arg_bitcast_invalid.4:
68-
; CHECK-NEXT: .functype .Lhas_ptr_arg_bitcast_invalid.4 (i32) -> (i32)
67+
; CHECK-LABEL: .Lhas_ptr_arg_bitcast_invalid.2:
68+
; CHECK-NEXT: .functype .Lhas_ptr_arg_bitcast_invalid.2 (i32) -> (i32)
6969
; CHECK-NEXT: unreachable
7070
; CHECK-NEXT: end_function

0 commit comments

Comments
 (0)