Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-objdump / XCOFF / disassemble-all.test
blob4c96662fc854fdd022dc815c996f41e42655484b
1 # RUN: llvm-objdump -D %p/Inputs/xcoff-section-headers.o | \
2 # RUN:   FileCheck %s
4 # RUN: llvm-objdump -D -r %p/Inputs/xcoff-section-headers.o | \
5 # RUN:   FileCheck --check-prefixes=CHECK,WITH-R %s
7 ## xcoff-section-headers.o Compiled with IBM XL C/C++ for AIX, V16.1.0
8 ## compiler command: xlc -qtls -o xcoff-section-headers.o -c test.c
9 ## test.c:
10 ## int a;
11 ## int b = 12345;
12 ## __thread int c;
13 ## __thread double d = 3.14159;
15 ## int func(void)  {
16 ##   return a;
17 ## }
19 CHECK:        Inputs/xcoff-section-headers.o:   file format aixcoff-rs6000
20 CHECK:        Disassembly of section .text:
21 CHECK:        00000000 <.func>:
22 CHECK-NEXT:        0: 80 62 00 04                       lwz 3, 4(2)
23 WITH-R-NEXT:                         00000002:  R_TOC        a
24 CHECK-NEXT:        4: 80 63 00 00                       lwz 3, 0(3)
25 CHECK-NEXT:        8: 4e 80 00 20                       blr
26 CHECK-NEXT:        c: 00 00 00 00                       <unknown>
27 CHECK-NEXT:       10: 00 00 20 40                       <unknown>
28 CHECK-NEXT:       14: 00 00 00 01                       <unknown>
29 CHECK-NEXT:       18: 00 00 00 0c                       <unknown>
30 CHECK-NEXT:       1c: 00 04 66 75                       <unknown>
31 CHECK-NEXT:       20: 6e 63 00 00                       xoris 3, 19, 0
32 CHECK-NEXT:             ...
33 CHECK:        Disassembly of section .data:
34 CHECK:        00000080 <func>:
35 CHECK-NEXT:       80: 00 00 00 94                       <unknown>
36 WITH-R-NEXT:                         00000080:  R_POS        func
37 CHECK:        00000084 <a>:
38 CHECK-NEXT:       84: 00 00 00 a4                       <unknown>
39 WITH-R-NEXT:                         00000084:  R_POS        a
40 CHECK:        00000088 <b>:
41 CHECK-NEXT:       88: 00 00 00 a0                       <unknown>
42 WITH-R-NEXT:                         00000088:  R_POS        b
43 CHECK:        0000008c <c>:
44 CHECK-NEXT:       8c: 00 00 00 08                       <unknown>
45 WITH-R-NEXT:                         0000008c:  R_TLS        c
46 CHECK:        00000090 <d>:
47 CHECK-NEXT:       90: 00 00 00 00                       <unknown>
48 WITH-R-NEXT:                         00000090:  R_TLS        d
49 CHECK:        00000094 <func>:
50 CHECK-NEXT:       94: 00 00 00 00                       <unknown>
51 WITH-R-NEXT:                         00000094:  R_POS        .func
52 CHECK-NEXT:       98: 00 00 00 80                       <unknown>
53 WITH-R-NEXT:                         00000098:  R_POS        TOC
54 CHECK-NEXT:       9c: 00 00 00 00                       <unknown>
55 CHECK:        000000a0 <b>:
56 CHECK-NEXT:       a0: 00 00 30 39                       <unknown>
57 CHECK:        Disassembly of section .bss:
58 CHECK:        000000a4 <a>:
59 CHECK-NEXT:        ...
60 CHECK:        Disassembly of section .tdata:
61 CHECK:        00000000 <d>:
62 CHECK-NEXT:        0: 40 09 21 f9                       bdnzfl  9, 0x21f8
63 CHECK-NEXT:        4: f0 1b 86 6e                       <unknown>
64 CHECK:        Disassembly of section .tbss:
65 CHECK:        00000008 <c>:
66 CHECK-NEXT:        ...