|
1 | | -## Verify that LLVM-specific section types are correctly inferred from assembly input. |
| 1 | +## Verify that LLVM-specific section types are correctly inferred from assembly input and printed. |
| 2 | +# RUN: llvm-mc -triple i386-pc-linux %s | FileCheck --check-prefix=ASM %s |
2 | 3 | # RUN: llvm-mc -triple i386-pc-linux -filetype=obj -o %t %s |
3 | 4 | # RUN: llvm-readobj -S %t | FileCheck %s |
| 5 | +# ASM: .section .section1,"",@llvm_bb_addr_map |
4 | 6 | .section .section1,"",@llvm_bb_addr_map |
5 | 7 | .byte 1 |
| 8 | +# ASM: .section .section2,"",@llvm_call_graph_profile |
6 | 9 | .section .section2,"",@llvm_call_graph_profile |
7 | 10 | .byte 1 |
| 11 | +# ASM: .section .section3,"",@llvm_odrtab |
8 | 12 | .section .section3,"",@llvm_odrtab |
9 | 13 | .byte 1 |
| 14 | +# ASM: .section .section4,"",@llvm_linker_options |
10 | 15 | .section .section4,"",@llvm_linker_options |
11 | 16 | .byte 1 |
| 17 | +# ASM: .section .section5,"",@llvm_sympart |
12 | 18 | .section .section5,"",@llvm_sympart |
13 | 19 | .byte 1 |
| 20 | +# ASM: .section .section6,"",@llvm_dependent_libraries |
14 | 21 | .section .section6,"",@llvm_dependent_libraries |
15 | 22 | .byte 1 |
| 23 | +# ASM: .section .section7,"",@llvm_offloading |
16 | 24 | .section .section7,"",@llvm_offloading |
17 | 25 | .byte 1 |
| 26 | +# ASM: .section .section8,"",@llvm_lto |
18 | 27 | .section .section8,"",@llvm_lto |
19 | 28 | .byte 1 |
| 29 | +# ASM: .section .section9,"",@llvm_cfi_jump_table,1 |
| 30 | +.section .section9,"",@llvm_cfi_jump_table,1 |
| 31 | +.byte 1 |
20 | 32 |
|
21 | 33 | # CHECK: Name: .section1 |
22 | 34 | # CHECK-NEXT: Type: SHT_LLVM_BB_ADDR_MAP |
|
34 | 46 | # CHECK-NEXT: Type: SHT_LLVM_OFFLOADING |
35 | 47 | # CHECK: Name: .section8 |
36 | 48 | # CHECK-NEXT: Type: SHT_LLVM_LTO |
| 49 | +# CHECK: Name: .section9 |
| 50 | +# CHECK-NEXT: Type: SHT_LLVM_CFI_JUMP_TABLE |
| 51 | +# CHECK: EntrySize: 1 |
0 commit comments