forked from OSchip/llvm-project
56 lines
2.1 KiB
Plaintext
56 lines
2.1 KiB
Plaintext
# RUN: llvm-objdump -D %p/Inputs/xcoff-section-headers.o | \
|
|
# RUN: FileCheck %s
|
|
|
|
# xcoff-section-headers.o Compiled with IBM XL C/C++ for AIX, V16.1.0
|
|
# compiler command: xlc -qtls -o xcoff-section-headers.o -c test.c
|
|
# test.c:
|
|
# int a;
|
|
# int b = 12345;
|
|
# __thread int c;
|
|
# __thread double d = 3.14159;
|
|
#
|
|
# int func(void) {
|
|
# return a;
|
|
# }
|
|
; REQUIRES: powerpc-registered-target
|
|
CHECK: Inputs/xcoff-section-headers.o: file format aixcoff-rs6000
|
|
CHECK: Disassembly of section .text:
|
|
CHECK: 00000000 .text:
|
|
CHECK-NEXT: 0: 80 62 00 04 lwz 3, 4(2)
|
|
CHECK-NEXT: 4: 80 63 00 00 lwz 3, 0(3)
|
|
CHECK-NEXT: 8: 4e 80 00 20 blr
|
|
CHECK-NEXT: c: 00 00 00 00 <unknown>
|
|
CHECK-NEXT: 10: 00 00 20 40 <unknown>
|
|
CHECK-NEXT: 14: 00 00 00 01 <unknown>
|
|
CHECK-NEXT: 18: 00 00 00 0c <unknown>
|
|
CHECK-NEXT: 1c: 00 04 66 75 <unknown>
|
|
CHECK-NEXT: 20: 6e 63 00 00 xoris 3, 19, 0
|
|
CHECK-NEXT: ...
|
|
CHECK: Disassembly of section .data:
|
|
CHECK: 00000080 func:
|
|
CHECK-NEXT: 80: 00 00 00 94 <unknown>
|
|
CHECK: 00000084 a:
|
|
CHECK-NEXT: 84: 00 00 00 a4 <unknown>
|
|
CHECK: 00000088 b:
|
|
CHECK-NEXT: 88: 00 00 00 a0 <unknown>
|
|
CHECK: 0000008c c:
|
|
CHECK-NEXT: 8c: 00 00 00 08 <unknown>
|
|
CHECK: 00000090 d:
|
|
CHECK-NEXT: 90: 00 00 00 00 <unknown>
|
|
CHECK: 00000094 func:
|
|
CHECK-NEXT: 94: 00 00 00 00 <unknown>
|
|
CHECK-NEXT: 98: 00 00 00 80 <unknown>
|
|
CHECK-NEXT: 9c: 00 00 00 00 <unknown>
|
|
CHECK: 000000a0 b:
|
|
CHECK-NEXT: a0: 00 00 30 39 <unknown>
|
|
CHECK: Disassembly of section .bss:
|
|
CHECK: 000000a4 a:
|
|
CHECK-NEXT: ...
|
|
CHECK: Disassembly of section .tdata:
|
|
CHECK: 00000000 d:
|
|
CHECK-NEXT: 0: 40 09 21 f9 bdnzfl 9, .+8696
|
|
CHECK-NEXT: 4: f0 1b 86 6e <unknown>
|
|
CHECK: Disassembly of section .tbss:
|
|
CHECK: 00000008 c:
|
|
CHECK-NEXT: ...
|