@@ -11,22 +11,22 @@ target triple = "x86_64-unknown-linux-gnu"
1111
1212; This RUN command sets `-data-sections=true -unique-section-names=true` so data
1313; sections are uniqufied by numbers.
14- ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -enable-split-machine-functions \
15- ; RUN: -partition-static-data-sections=true -data-sections=true \
16- ; RUN: -unique-section-names =true -relocation-model=pic \
14+ ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -relocation-model=pic \
15+ ; RUN: -partition-static-data-sections=true \
16+ ; RUN: -data-sections =true -unique-section-names=true \
1717; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=SYM,COMMON --dump-input=always
1818
1919; This RUN command sets `-data-sections=true -unique-section-names=false` so
2020; data sections are uniqufied by variable names.
21- ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -enable-split-machine-functions \
22- ; RUN: -partition-static-data-sections=true -data-sections=true \
23- ; RUN: -unique-section-names=false -relocation-model=pic \
21+ ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -relocation-model=pic \
22+ ; RUN: -partition-static-data-sections=true \
23+ ; RUN: -data-sections=true - unique-section-names=false \
2424; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=UNIQ,COMMON --dump-input=always
2525
2626; This RUN command sets `-data-sections=false -unique-section-names=false`.
27- ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -enable-split-machine-functions \
28- ; RUN: -partition-static-data-sections=true -data-sections=false \
29- ; RUN: -unique-section-names=false -relocation-model=pic \
27+ ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -relocation-model=pic \
28+ ; RUN: -partition-static-data-sections=true \
29+ ; RUN: -data-sections=false - unique-section-names=false \
3030; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=AGG,COMMON --dump-input=always
3131
3232; For @.str and @.str.1
@@ -42,19 +42,19 @@ target triple = "x86_64-unknown-linux-gnu"
4242; For @hot_relro_array
4343; COMMON: .type hot_relro_array,@object
4444; SYM-NEXT: .section .data.rel.ro.hot.hot_relro_array
45- ; UNIQ-NEXT: .section .data.rel.ro.hot.,"aw",@progbits,unique,3
45+ ; UNIQ-NEXT: .section .data.rel.ro.hot.,"aw",@progbits,unique,1
4646; AGG-NEXT: .section .data.rel.ro.hot.,"aw",@progbits
4747
4848; For @hot_data, which is accessed by {cold_func, unprofiled_func, hot_func}.
4949; COMMON: .type hot_data,@object
5050; SYM-NEXT: .section .data.hot.hot_data,"aw",@progbits
51- ; UNIQ-NEXT: .section .data.hot.,"aw",@progbits,unique,4
51+ ; UNIQ-NEXT: .section .data.hot.,"aw",@progbits,unique,2
5252; AGG-NEXT: .section .data.hot.,"aw",@progbits
5353
5454; For @hot_bss, which is accessed by {unprofiled_func, hot_func}.
5555; COMMON: .type hot_bss,@object
5656; SYM-NEXT: .section .bss.hot.hot_bss,"aw",@nobits
57- ; UNIQ-NEXT: .section .bss.hot.,"aw",@nobits,unique,5
57+ ; UNIQ-NEXT: .section .bss.hot.,"aw",@nobits,unique,3
5858; AGG-NEXT: .section .bss.hot.,"aw",@nobits
5959
6060; For @.str.2
@@ -68,13 +68,13 @@ target triple = "x86_64-unknown-linux-gnu"
6868; For @cold_bss
6969; COMMON: .type cold_bss,@object
7070; SYM-NEXT: .section .bss.unlikely.cold_bss,"aw",@nobits
71- ; UNIQ-NEXT: .section .bss.unlikely.,"aw",@nobits,unique,6
71+ ; UNIQ-NEXT: .section .bss.unlikely.,"aw",@nobits,unique,4
7272; AGG-NEXT: .section .bss.unlikely.,"aw",@nobits
7373
7474; For @cold_data
7575; COMMON: .type cold_data,@object
7676; SYM-NEXT: .section .data.unlikely.cold_data,"aw",@progbits
77- ; UNIQ-NEXT: .section .data.unlikely.,"aw",@progbits,unique,7
77+ ; UNIQ-NEXT: .section .data.unlikely.,"aw",@progbits,unique,5
7878; AGG-NEXT: .section .data.unlikely.,"aw",@progbits
7979
8080; For @cold_data_custom_foo_section
@@ -87,7 +87,7 @@ target triple = "x86_64-unknown-linux-gnu"
8787; For @cold_relro_array
8888; COMMON: .type cold_relro_array,@object
8989; SYM-NEXT: .section .data.rel.ro.unlikely.cold_relro_array,"aw",@progbits
90- ; UNIQ-NEXT: .section .data.rel.ro.unlikely.,"aw",@progbits,unique,8
90+ ; UNIQ-NEXT: .section .data.rel.ro.unlikely.,"aw",@progbits,unique,6
9191; AGG-NEXT: .section .data.rel.ro.unlikely.,"aw",@progbits
9292
9393; Currently static-data-splitter only analyzes access from code.
@@ -97,19 +97,19 @@ target triple = "x86_64-unknown-linux-gnu"
9797; For @bss2
9898; COMMON: .type bss2,@object
9999; SYM-NEXT: .section .bss.unlikely.bss2,"aw",@nobits
100- ; UNIQ-NEXT: .section .bss.unlikely.,"aw",@nobits,unique,9
100+ ; UNIQ-NEXT: .section .bss.unlikely.,"aw",@nobits,unique,7
101101; AGG-NEXT: .section .bss.unlikely.,"aw",@nobits
102102
103103; For @data3
104104; COMMON: .type data3,@object
105105; SYM-NEXT: .section .data.unlikely.data3,"aw",@progbits
106- ; UNIQ-NEXT: .section .data.unlikely.,"aw",@progbits,unique,10
106+ ; UNIQ-NEXT: .section .data.unlikely.,"aw",@progbits,unique,8
107107; AGG-NEXT: .section .data.unlikely.,"aw",@progbits
108108
109109; For @data_with_unknown_hotness
110110; SYM: .type .Ldata_with_unknown_hotness,@object # @data_with_unknown_hotness
111111; SYM: .section .data..Ldata_with_unknown_hotness,"aw",@progbits
112- ; UNIQ: .section .data,"aw",@progbits,unique,11
112+ ; UNIQ: .section .data,"aw",@progbits,unique,9
113113; The `.section` directive is omitted for .data with -unique-section-names=false.
114114; See MCSectionELF::shouldOmitSectionDirective for the implementation details.
115115; AGG: .data
0 commit comments