mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
30f006473b
This is the first part of an effort to add wasm binary support across all llvm tools. Patch by Sam Clegg Differential Revision: https://reviews.llvm.org/D26172 llvm-svn: 288251
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
# RUN: llvm-objdump -h %p/Inputs/test.wasm | FileCheck %s
|
|
|
|
# CHECK: Sections:
|
|
# CHECK: Idx Name Size Address Type
|
|
# CHECK: 0 TYPE 0000000f 0000000000000000
|
|
# CHECK: 1 IMPORT 0000000b 0000000000000000
|
|
# CHECK: 2 FUNCTION 00000003 0000000000000000
|
|
# CHECK: 3 TABLE 00000005 0000000000000000
|
|
# CHECK: 4 EXPORT 0000000e 0000000000000000
|
|
# CHECK: 5 ELEM 00000007 0000000000000000
|
|
# CHECK: 6 CODE 0000002a 0000000000000000 TEXT
|
|
# CHECK: 7 name 0000002c 0000000000000000
|
|
|
|
# RUN: llvm-objdump -p %p/Inputs/test.wasm | FileCheck %s -check-prefix CHECK-HEADER
|
|
|
|
# CHECK-HEADER: Program Header:
|
|
# CHECK-HEADER: Version: 0xd
|
|
|
|
# RUN: llvm-objdump -s --section=CODE %p/Inputs/test.wasm | FileCheck %s -check-prefix CHECK-SECTIONS
|
|
|
|
# CHECK-SECTIONS: Contents of section CODE:
|
|
# CHECK-SECTIONS: 0000 02070043 0000803f 0b200201 7d017c10 ...C...?. ..}.|.
|
|
# CHECK-SECTIONS: 0010 001a4100 10011a41 00410111 00001a20 ..A....A.A.....
|
|
# CHECK-SECTIONS: 0020 011a4300 00000021 020b ..C....!..
|