llvm.org GIT mirror llvm / 2d7ecce
[WebAssembly] Update pre-generated test files to match latest llc output. NFC. The ordering of llc's output was changed in rL326334. Differential Revision: https://reviews.llvm.org/D43941 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326445 91177308-0d34-0410-b5e6-96231b3b80d8 Nicholas Wilson 2 years ago
10 changed file(s) with 29 addition(s) and 29 deletion(s). Raw diff Collapse all Expand all
653653 WASM-NEXT: SymbolTable:
654654 WASM-NEXT: - Index: 0
655655 WASM-NEXT: Kind: FUNCTION
656 WASM-NEXT: Name: puts
657 WASM-NEXT: Flags: [ UNDEFINED ]
658 WASM-NEXT: Function: 0
656 WASM-NEXT: Name: main
657 WASM-NEXT: Flags: [ ]
658 WASM-NEXT: Function: 2
659659 WASM-NEXT: - Index: 1
660 WASM: Name: SomeOtherFunction
661 WASM: - Index: 2
662 WASM: Name: main
663 WASM: - Index: 3
664660 WASM-NEXT: Kind: DATA
665661 WASM-NEXT: Name: .L.str
666662 WASM-NEXT: Flags: [ BINDING_LOCAL ]
667663 WASM-NEXT: Segment: 0
668 WASM-NEXT: Size: 13
669 WASM-NEXT: - Index: 4
664 WASM-NEXT: Size: 13
665 WASM-NEXT: - Index: 2
666 WASM: Name: puts
667 WASM: - Index: 3
668 WASM: Name: SomeOtherFunction
669 WASM: - Index: 4
670670 WASM: Name: var
671671 WASM: SegmentInfo:
672672 WASM-NEXT: - Index: 0
5959 ELF-MIPSEL: R_MIPS_CALL16 SomeOtherFunction
6060
6161 WASM: CODE
62 WASM-NEXT: R_WEBASSEMBLY_MEMORY_ADDR_SLEB 3+0
63 WASM-NEXT: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 0+0
64 WASM-NEXT: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 1+0
62 WASM-NEXT: R_WEBASSEMBLY_MEMORY_ADDR_SLEB 1+0
63 WASM-NEXT: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 2+0
64 WASM-NEXT: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 3+0
6565
6666 ELF-complex-x86-64: .text
6767 ELF-complex-x86-64-NEXT: R_X86_64_8 .data-4
0 RUN: llvm-objdump -t %p/../Inputs/trivial.obj.wasm | FileCheck %s
11
22 CHECK: SYMBOL TABLE:
3 CHECK-NEXT: 00000002 g F CODE main
4 CHECK-NEXT: 00000000 l DATA .L.str
35 CHECK-NEXT: 00000000 g F *UND* puts
46 CHECK-NEXT: 00000000 g F *UND* SomeOtherFunction
5 CHECK-NEXT: 00000002 g F CODE main
6 CHECK-NEXT: 00000000 l DATA .L.str
77 CHECK-NEXT: 00000010 g DATA var
77 # CHECK-NEXT: 3 CODE 00000019 0000000000000000 TEXT
88 # CHECK-NEXT: 4 DATA 0000001c 0000000000000000 DATA
99 # CHECK-NEXT: 5 reloc.CODE 00000017 0000000000000000
10 # CHECK-NEXT: 6 linking 0000005c 0000000000000000
10 # CHECK-NEXT: 6 linking 00000055 0000000000000000
1111
1212 # RUN: llvm-objdump -p %p/Inputs/trivial.obj.wasm | FileCheck %s -check-prefix CHECK-HEADER
1313
290290 WASM-NEXT: Relocation {
291291 WASM-NEXT: Type: R_WEBASSEMBLY_MEMORY_ADDR_SLEB (4)
292292 WASM-NEXT: Offset: 0x4
293 WASM-NEXT: Index: 0x3
293 WASM-NEXT: Index: 0x1
294294 WASM-NEXT: Addend: 0
295295 WASM-NEXT: }
296296 WASM-NEXT: Relocation {
297297 WASM-NEXT: Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB (0)
298298 WASM-NEXT: Offset: 0xA
299 WASM-NEXT: Index: 0x0
299 WASM-NEXT: Index: 0x2
300300 WASM-NEXT: }
301301 WASM-NEXT: Relocation {
302302 WASM-NEXT: Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB (0)
303303 WASM-NEXT: Offset: 0x11
304 WASM-NEXT: Index: 0x1
304 WASM-NEXT: Index: 0x3
305305 WASM-NEXT: }
306306 WASM-NEXT: }
307307 WASM-NEXT: ]
533533 WASM-NEXT: }
534534 WASM-NEXT: Section {
535535 WASM-NEXT: Type: CUSTOM (0x0)
536 WASM-NEXT: Size: 72
536 WASM-NEXT: Size: 65
537537 WASM-NEXT: Offset: 220
538538 WASM-NEXT: Name: linking
539539 WASM-NEXT: }
7272
7373 WASM: Symbols [
7474 WASM-NEXT: Symbol {
75 WASM-NEXT: Name: main
76 WASM-NEXT: Type: FUNCTION (0x0)
77 WASM-NEXT: Flags: 0x0
78 WASM-NEXT: }
79 WASM-NEXT: Symbol {
80 WASM-NEXT: Name: .L.str
81 WASM-NEXT: Type: DATA (0x1)
82 WASM-NEXT: Flags: 0x2
83 WASM-NEXT: }
84 WASM-NEXT: Symbol {
7585 WASM-NEXT: Name: puts
7686 WASM-NEXT: Type: FUNCTION (0x0)
7787 WASM-NEXT: Flags: 0x10
8191 WASM-NEXT: Type: FUNCTION (0x0)
8292 WASM-NEXT: Flags: 0x10
8393 WASM-NEXT: }
84 WASM-NEXT: Symbol {
85 WASM-NEXT: Name: main
86 WASM-NEXT: Type: FUNCTION (0x0)
87 WASM-NEXT: Flags: 0x0
88 WASM-NEXT: }
89 WASM-NEXT: Symbol {
90 WASM-NEXT: Name: .L.str
91 WASM-NEXT: Type: DATA (0x1)
92 WASM-NEXT: Flags: 0x2
93 WASM-NEXT: }
9494 WASM-NEXT: ]