Skip to content

Commit 3186ad7

Browse files
committed
Update tests
1 parent c357018 commit 3186ad7

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

llvm/test/CodeGen/WebAssembly/call-indirect.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -asm-verbose=false -O2 | FileCheck --check-prefixes=CHECK,NOREF %s
1+
; RUN: llc < %s -asm-verbose=false -mattr=-reference-types -O2 | FileCheck --check-prefixes=CHECK,NOREF %s
22
; RUN: llc < %s -asm-verbose=false -mattr=+reference-types -O2 | FileCheck --check-prefixes=CHECK,REF %s
33
; RUN: llc < %s -asm-verbose=false -O2 --filetype=obj | obj2yaml | FileCheck --check-prefix=OBJ %s
44

llvm/test/CodeGen/WebAssembly/function-pointer64.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
; RUN: llc < %s -asm-verbose=false -O2 | FileCheck %s
1+
; RUN: llc < %s -asm-verbose=false -mattr=-reference-types -O2 | FileCheck %s
22
; RUN: llc < %s -asm-verbose=false -mattr=+reference-types -O2 | FileCheck --check-prefix=REF %s
3-
; RUN: llc < %s -asm-verbose=false -O2 --filetype=obj | obj2yaml | FileCheck --check-prefix=YAML %s
3+
; RUN: llc < %s -asm-verbose=false -mattr=-reference-types -O2 --filetype=obj | obj2yaml | FileCheck --check-prefix=YAML %s
44

55
; This tests pointer features that may codegen differently in wasm64.
66

llvm/test/CodeGen/WebAssembly/reg-stackify.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ define i32 @stackpointer_dependency(ptr readnone) {
649649
; NOREGS-NEXT: local.tee 0
650650
; NOREGS: i32.load 0
651651
; NOREGS-NEXT: i32.load 0
652-
; NOREGS-NEXT: call_indirect (i32, i32) -> (i32)
652+
; NOREGS-NEXT: call_indirect __indirect_function_table, (i32, i32) -> (i32)
653653
%class.call_indirect = type { ptr }
654654
define i32 @call_indirect_stackify(ptr %objptr, i32 %arg) {
655655
%obj = load ptr, ptr %objptr

llvm/test/CodeGen/WebAssembly/swiftcc.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ define swiftcc void @bar() {
1919
call swiftcc void @foo(i32 1, i32 2)
2020

2121
; REG: call_indirect $pop{{[0-9]+}}, $pop{{[0-9]+}}, $pop{{[0-9]+}}, $pop{{[0-9]+}}
22-
; CHECK: call_indirect (i32, i32, i32, i32) -> ()
22+
; CHECK: call_indirect __indirect_function_table, (i32, i32, i32, i32) -> ()
2323
call swiftcc void %1(i32 1, i32 2)
2424

2525
; REG: call_indirect $pop{{[0-9]+}}, $pop{{[0-9]+}}, $pop{{[0-9]+}}, $pop{{[0-9]+}}
26-
; CHECK: call_indirect (i32, i32, i32, i32) -> ()
26+
; CHECK: call_indirect __indirect_function_table, (i32, i32, i32, i32) -> ()
2727
call swiftcc void %1(i32 1, i32 2, i32 swiftself 3)
2828

2929
%err = alloca swifterror ptr, align 4
3030

3131
; REG: call_indirect $pop{{[0-9]+}}, $pop{{[0-9]+}}, $pop{{[0-9]+}}, $pop{{[0-9]+}}
32-
; CHECK: call_indirect (i32, i32, i32, i32) -> ()
32+
; CHECK: call_indirect __indirect_function_table, (i32, i32, i32, i32) -> ()
3333
call swiftcc void %1(i32 1, i32 2, ptr swifterror %err)
3434

3535
; REG: call_indirect $pop{{[0-9]+}}, $pop{{[0-9]+}}, $pop{{[0-9]+}}, $pop{{[0-9]+}}
36-
; CHECK: call_indirect (i32, i32, i32, i32) -> ()
36+
; CHECK: call_indirect __indirect_function_table, (i32, i32, i32, i32) -> ()
3737
call swiftcc void %1(i32 1, i32 2, i32 swiftself 3, ptr swifterror %err)
3838

3939
ret void

llvm/test/MC/WebAssembly/function-alias.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -filetype=obj %s -o - | llvm-readobj --symbols - | FileCheck %s
1+
; RUN: llc -filetype=obj %s -mattr=-reference-types -o - | llvm-readobj --symbols - | FileCheck %s
22
; RUN: llc -filetype=obj %s -mattr=+reference-types -o - | llvm-readobj --symbols - | FileCheck --check-prefix=REF %s
33

44
target triple = "wasm32-unknown-unknown-wasm"

llvm/test/MC/WebAssembly/no-dead-strip.ll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ entry:
5050
; CHECK-NEXT: Segment: 3
5151
; CHECK-NEXT: Offset: 8
5252
; CHECK-NEXT: Size: 8
53+
; CHECK-NEXT: - Index: 5
54+
; CHECK-NEXT: Kind: TABLE
55+
; CHECK-NEXT: Name: __indirect_function_table
56+
; CHECK-NEXT: Flags: [ UNDEFINED, NO_STRIP ]
57+
; CHECK-NEXT: Table: 0
5358
; CHECK-NEXT: SegmentInfo:
5459
; CHECK-NEXT: - Index: 0
5560
; CHECK-NEXT: Name: .data.gv0

0 commit comments

Comments
 (0)