1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[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

llvm-svn: 326445
This commit is contained in:
Nicholas Wilson 2018-03-01 15:55:59 +00:00
parent 458f1ce52a
commit 741f2ab6c7
10 changed files with 29 additions and 29 deletions

View File

@ -654,20 +654,20 @@ WASM-NEXT: Name: linking
WASM-NEXT: SymbolTable: WASM-NEXT: SymbolTable:
WASM-NEXT: - Index: 0 WASM-NEXT: - Index: 0
WASM-NEXT: Kind: FUNCTION WASM-NEXT: Kind: FUNCTION
WASM-NEXT: Name: puts WASM-NEXT: Name: main
WASM-NEXT: Flags: [ UNDEFINED ] WASM-NEXT: Flags: [ ]
WASM-NEXT: Function: 0 WASM-NEXT: Function: 2
WASM-NEXT: - Index: 1 WASM-NEXT: - Index: 1
WASM: Name: SomeOtherFunction
WASM: - Index: 2
WASM: Name: main
WASM: - Index: 3
WASM-NEXT: Kind: DATA WASM-NEXT: Kind: DATA
WASM-NEXT: Name: .L.str WASM-NEXT: Name: .L.str
WASM-NEXT: Flags: [ BINDING_LOCAL ] WASM-NEXT: Flags: [ BINDING_LOCAL ]
WASM-NEXT: Segment: 0 WASM-NEXT: Segment: 0
WASM-NEXT: Size: 13 WASM-NEXT: Size: 13
WASM-NEXT: - Index: 4 WASM-NEXT: - Index: 2
WASM: Name: puts
WASM: - Index: 3
WASM: Name: SomeOtherFunction
WASM: - Index: 4
WASM: Name: var WASM: Name: var
WASM: SegmentInfo: WASM: SegmentInfo:
WASM-NEXT: - Index: 0 WASM-NEXT: - Index: 0

View File

@ -60,9 +60,9 @@ ELF-MIPSEL: R_MIPS_CALL16 puts
ELF-MIPSEL: R_MIPS_CALL16 SomeOtherFunction ELF-MIPSEL: R_MIPS_CALL16 SomeOtherFunction
WASM: CODE WASM: CODE
WASM-NEXT: R_WEBASSEMBLY_MEMORY_ADDR_SLEB 3+0 WASM-NEXT: R_WEBASSEMBLY_MEMORY_ADDR_SLEB 1+0
WASM-NEXT: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 0+0 WASM-NEXT: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 2+0
WASM-NEXT: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 1+0 WASM-NEXT: R_WEBASSEMBLY_FUNCTION_INDEX_LEB 3+0
ELF-complex-x86-64: .text ELF-complex-x86-64: .text
ELF-complex-x86-64-NEXT: R_X86_64_8 .data-4 ELF-complex-x86-64-NEXT: R_X86_64_8 .data-4

View File

@ -1,8 +1,8 @@
RUN: llvm-objdump -t %p/../Inputs/trivial.obj.wasm | FileCheck %s RUN: llvm-objdump -t %p/../Inputs/trivial.obj.wasm | FileCheck %s
CHECK: SYMBOL TABLE: CHECK: SYMBOL TABLE:
CHECK-NEXT: 00000000 g F *UND* puts
CHECK-NEXT: 00000000 g F *UND* SomeOtherFunction
CHECK-NEXT: 00000002 g F CODE main CHECK-NEXT: 00000002 g F CODE main
CHECK-NEXT: 00000000 l DATA .L.str CHECK-NEXT: 00000000 l DATA .L.str
CHECK-NEXT: 00000000 g F *UND* puts
CHECK-NEXT: 00000000 g F *UND* SomeOtherFunction
CHECK-NEXT: 00000010 g DATA var CHECK-NEXT: 00000010 g DATA var

View File

@ -8,7 +8,7 @@
# CHECK-NEXT: 3 CODE 00000019 0000000000000000 TEXT # CHECK-NEXT: 3 CODE 00000019 0000000000000000 TEXT
# CHECK-NEXT: 4 DATA 0000001c 0000000000000000 DATA # CHECK-NEXT: 4 DATA 0000001c 0000000000000000 DATA
# CHECK-NEXT: 5 reloc.CODE 00000017 0000000000000000 # CHECK-NEXT: 5 reloc.CODE 00000017 0000000000000000
# CHECK-NEXT: 6 linking 0000005c 0000000000000000 # CHECK-NEXT: 6 linking 00000055 0000000000000000
# RUN: llvm-objdump -p %p/Inputs/trivial.obj.wasm | FileCheck %s -check-prefix CHECK-HEADER # RUN: llvm-objdump -p %p/Inputs/trivial.obj.wasm | FileCheck %s -check-prefix CHECK-HEADER

View File

@ -291,18 +291,18 @@ WASM-NEXT: Section (4) CODE {
WASM-NEXT: Relocation { WASM-NEXT: Relocation {
WASM-NEXT: Type: R_WEBASSEMBLY_MEMORY_ADDR_SLEB (4) WASM-NEXT: Type: R_WEBASSEMBLY_MEMORY_ADDR_SLEB (4)
WASM-NEXT: Offset: 0x4 WASM-NEXT: Offset: 0x4
WASM-NEXT: Index: 0x3 WASM-NEXT: Index: 0x1
WASM-NEXT: Addend: 0 WASM-NEXT: Addend: 0
WASM-NEXT: } WASM-NEXT: }
WASM-NEXT: Relocation { WASM-NEXT: Relocation {
WASM-NEXT: Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB (0) WASM-NEXT: Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB (0)
WASM-NEXT: Offset: 0xA WASM-NEXT: Offset: 0xA
WASM-NEXT: Index: 0x0 WASM-NEXT: Index: 0x2
WASM-NEXT: } WASM-NEXT: }
WASM-NEXT: Relocation { WASM-NEXT: Relocation {
WASM-NEXT: Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB (0) WASM-NEXT: Type: R_WEBASSEMBLY_FUNCTION_INDEX_LEB (0)
WASM-NEXT: Offset: 0x11 WASM-NEXT: Offset: 0x11
WASM-NEXT: Index: 0x1 WASM-NEXT: Index: 0x3
WASM-NEXT: } WASM-NEXT: }
WASM-NEXT: } WASM-NEXT: }
WASM-NEXT: ] WASM-NEXT: ]

View File

@ -534,7 +534,7 @@ WASM-NEXT: Name: reloc.CODE
WASM-NEXT: } WASM-NEXT: }
WASM-NEXT: Section { WASM-NEXT: Section {
WASM-NEXT: Type: CUSTOM (0x0) WASM-NEXT: Type: CUSTOM (0x0)
WASM-NEXT: Size: 72 WASM-NEXT: Size: 65
WASM-NEXT: Offset: 220 WASM-NEXT: Offset: 220
WASM-NEXT: Name: linking WASM-NEXT: Name: linking
WASM-NEXT: } WASM-NEXT: }

View File

@ -73,16 +73,6 @@ ELF-NEXT: }
WASM: Symbols [ WASM: Symbols [
WASM-NEXT: Symbol { WASM-NEXT: Symbol {
WASM-NEXT: Name: puts
WASM-NEXT: Type: FUNCTION (0x0)
WASM-NEXT: Flags: 0x10
WASM-NEXT: }
WASM-NEXT: Symbol {
WASM-NEXT: Name: SomeOtherFunction
WASM-NEXT: Type: FUNCTION (0x0)
WASM-NEXT: Flags: 0x10
WASM-NEXT: }
WASM-NEXT: Symbol {
WASM-NEXT: Name: main WASM-NEXT: Name: main
WASM-NEXT: Type: FUNCTION (0x0) WASM-NEXT: Type: FUNCTION (0x0)
WASM-NEXT: Flags: 0x0 WASM-NEXT: Flags: 0x0
@ -92,4 +82,14 @@ WASM-NEXT: Name: .L.str
WASM-NEXT: Type: DATA (0x1) WASM-NEXT: Type: DATA (0x1)
WASM-NEXT: Flags: 0x2 WASM-NEXT: Flags: 0x2
WASM-NEXT: } WASM-NEXT: }
WASM-NEXT: Symbol {
WASM-NEXT: Name: puts
WASM-NEXT: Type: FUNCTION (0x0)
WASM-NEXT: Flags: 0x10
WASM-NEXT: }
WASM-NEXT: Symbol {
WASM-NEXT: Name: SomeOtherFunction
WASM-NEXT: Type: FUNCTION (0x0)
WASM-NEXT: Flags: 0x10
WASM-NEXT: }
WASM-NEXT: ] WASM-NEXT: ]