@@ -11,22 +11,22 @@ target triple = "x86_64-unknown-linux-gnu"
11
11
12
12
; This RUN command sets `-data-sections=true -unique-section-names=true` so data
13
13
; 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 \
17
17
; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=SYM,COMMON --dump-input=always
18
18
19
19
; This RUN command sets `-data-sections=true -unique-section-names=false` so
20
20
; 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 \
24
24
; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=UNIQ,COMMON --dump-input=always
25
25
26
26
; 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 \
30
30
; RUN: %s -o - 2>&1 | FileCheck %s --check-prefixes=AGG,COMMON --dump-input=always
31
31
32
32
; For @.str and @.str.1
@@ -42,19 +42,19 @@ target triple = "x86_64-unknown-linux-gnu"
42
42
; For @hot_relro_array
43
43
; COMMON: .type hot_relro_array,@object
44
44
; 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
46
46
; AGG-NEXT: .section .data.rel.ro.hot.,"aw",@progbits
47
47
48
48
; For @hot_data, which is accessed by {cold_func, unprofiled_func, hot_func}.
49
49
; COMMON: .type hot_data,@object
50
50
; 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
52
52
; AGG-NEXT: .section .data.hot.,"aw",@progbits
53
53
54
54
; For @hot_bss, which is accessed by {unprofiled_func, hot_func}.
55
55
; COMMON: .type hot_bss,@object
56
56
; 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
58
58
; AGG-NEXT: .section .bss.hot.,"aw",@nobits
59
59
60
60
; For @.str.2
@@ -68,13 +68,13 @@ target triple = "x86_64-unknown-linux-gnu"
68
68
; For @cold_bss
69
69
; COMMON: .type cold_bss,@object
70
70
; 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
72
72
; AGG-NEXT: .section .bss.unlikely.,"aw",@nobits
73
73
74
74
; For @cold_data
75
75
; COMMON: .type cold_data,@object
76
76
; 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
78
78
; AGG-NEXT: .section .data.unlikely.,"aw",@progbits
79
79
80
80
; For @cold_data_custom_foo_section
@@ -87,7 +87,7 @@ target triple = "x86_64-unknown-linux-gnu"
87
87
; For @cold_relro_array
88
88
; COMMON: .type cold_relro_array,@object
89
89
; 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
91
91
; AGG-NEXT: .section .data.rel.ro.unlikely.,"aw",@progbits
92
92
93
93
; Currently static-data-splitter only analyzes access from code.
@@ -97,19 +97,19 @@ target triple = "x86_64-unknown-linux-gnu"
97
97
; For @bss2
98
98
; COMMON: .type bss2,@object
99
99
; 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
101
101
; AGG-NEXT: .section .bss.unlikely.,"aw",@nobits
102
102
103
103
; For @data3
104
104
; COMMON: .type data3,@object
105
105
; 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
107
107
; AGG-NEXT: .section .data.unlikely.,"aw",@progbits
108
108
109
109
; For @data_with_unknown_hotness
110
110
; SYM: .type .Ldata_with_unknown_hotness,@object # @data_with_unknown_hotness
111
111
; 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
113
113
; The `.section` directive is omitted for .data with -unique-section-names=false.
114
114
; See MCSectionELF::shouldOmitSectionDirective for the implementation details.
115
115
; AGG: .data
0 commit comments