|
19 | 19 | ; DEFAULT: .section .rodata.bar_prefix.bar,"a",@progbits |
20 | 20 | ; DEFAULT: .LJTI2_0 |
21 | 21 |
|
22 | | -; RUN: llc -mtriple=aarch64-unknown-linux-gnu -enable-split-machine-functions \ |
23 | | -; RUN: -partition-static-data-sections=true -function-sections=true \ |
| 22 | +; Test that section names are uniqufied by numbers but not function names with |
| 23 | +; {-function-sections, -unique-section-names=false}. Specifically, @foo jump |
| 24 | +; tables are emitted in two sections, one with unique ID 2 and the other with |
| 25 | +; unique ID 3. |
| 26 | +; RUN: llc -mtriple=aarch64-unknown-linux-gnu -partition-static-data-sections \ |
| 27 | +; RUN: -function-sections -unique-section-names=false \ |
24 | 28 | ; RUN: -aarch64-enable-atomic-cfg-tidy=false -aarch64-min-jump-table-entries=2 \ |
25 | | -; RUN: -unique-section-names=false %s -o - 2>&1 | FileCheck %s --check-prefixes=NUM,JT |
| 29 | +; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=NUM,JT |
26 | 30 |
|
27 | | -; Section names will optionally have `.<func>` if -function-sections is enabled. |
28 | | -; RUN: llc -mtriple=aarch64-unknown-linux-gnu -enable-split-machine-functions \ |
29 | | -; RUN: -partition-static-data-sections=true -function-sections=true \ |
| 31 | +; Section names will optionally have `.<func>` with {-function-sections, -unique-section-names}. |
| 32 | +; RUN: llc -mtriple=aarch64-unknown-linux-gnu -partition-static-data-sections \ |
| 33 | +; RUN: -function-sections -unique-section-names \ |
30 | 34 | ; RUN: -aarch64-enable-atomic-cfg-tidy=false -aarch64-min-jump-table-entries=2 \ |
31 | 35 | ; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=FUNC,JT |
32 | 36 |
|
33 | | -; RUN: llc -mtriple=aarch64-unknown-linux-gnu -enable-split-machine-functions \ |
34 | | -; RUN: -partition-static-data-sections=true -function-sections=false \ |
| 37 | +; Test that section names won't have `.<func>` with -function-sections=false. |
| 38 | +; RUN: llc -mtriple=aarch64-unknown-linux-gnu -partition-static-data-sections \ |
| 39 | +; RUN: -function-sections=false \ |
35 | 40 | ; RUN: -aarch64-enable-atomic-cfg-tidy=false -aarch64-min-jump-table-entries=2 \ |
36 | 41 | ; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=FUNCLESS,JT |
37 | 42 |
|
|
0 commit comments