Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-readobj / XCOFF / exception-section.test
blob03eb7e3a63aaae4aabd1729f8bc4261016488f67
1 ## Test the --exception-section option.
3 # RUN: yaml2obj --docnum=1 %s -o %t_xcoff32.o
4 # RUN: yaml2obj --docnum=2  %s -o %t_xcoff64.o
5 # RUN: llvm-readobj --exception-section %t_xcoff32.o |\
6 # RUN:   FileCheck %s --check-prefixes=CHECK
7 # RUN: llvm-readobj --exception-section %t_xcoff64.o |\
8 # RUN:   FileCheck %s --check-prefixes=CHECK
10 --- !XCOFF
11 FileHeader:
12   MagicNumber:       0x1DF
13 Sections:
14   - Name:            .text
15     Flags:           [ STYP_TEXT ]
16   - Name:            .except
17     Flags:           [ STYP_EXCEPT ]
18     SectionData:     "000000000000000000340003"
19 ##                    ^-------                   -SymbolIndex=0
20 ##                            ^-                 -LangID=0
21 ##                              ^-               -Reason=0
22 ##                                ^-------       -Trap Instr Addr=0x34
23 ##                                        ^-     -LangID=0
24 ##                                          ^-   -Reason=3
25 Symbols:
26   - Name:            .bar
27     Section:         .text
29 --- !XCOFF
30 FileHeader:
31   MagicNumber:       0x1F7
32 Sections:
33   - Name:            .text
34     Flags:           [ STYP_TEXT ]
35   - Name:            .except
36     Flags:           [ STYP_EXCEPT ]
37     SectionData:     "0000000000000000000000000000000000340003"
38 ##                    ^---------------                            -SymbolIndex=0
39 ##                                    ^-                          -LangID=0
40 ##                                      ^-                        -Reason=0
41 ##                                        ^--------------         -Trap Instr Addr=0x34
42 ##                                                       ^-       -LangID=0
43 ##                                                         ^-     -Reason=3
44 Symbols:
45   - Name:            .bar
46     Section:         .text
48 # CHECK:       Exception section {
49 # CHECK-NEXT:   Symbol: .bar (0)
50 # CHECK-NEXT:   LangID: 0
51 # CHECK-NEXT:   Reason: 0
52 # CHECK-NEXT:   Trap Instr Addr: 0x34
53 # CHECK-NEXT:   LangID: 0
54 # CHECK-NEXT:   Reason: 3
55 # CHECK-NEXT: }