Skip to content

Commit 12c37de

Browse files
authored
[test] fix test for BPOrder
Fixes llvm#120514
1 parent f17b9dd commit 12c37de

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lld/test/ELF/bp-section-orderer.s

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737

3838
# RUN: ld.lld -o out.cd a.o --verbose-bp-section-orderer --bp-compression-sort=data 2>&1 | FileCheck %s --check-prefix=BP-COMPRESSION-DATA
3939
# RUN: llvm-nm -jn out.cd | tr '\n' , | FileCheck %s --check-prefix=CDATA
40-
# CDATA: s4,s2,s1,s5,s3,F,C,E,D,B,A,_start,d4,d1,d3,d2,
40+
# CDATA: s5,s3,s4,s2,s1,F,C,E,D,B,A,_start,d4,d1,d3,d2,
4141

4242
# RUN: ld.lld -o out.cb a.o --verbose-bp-section-orderer --bp-compression-sort=both 2>&1 | FileCheck %s --check-prefix=BP-COMPRESSION-BOTH
4343
# RUN: llvm-nm -jn out.cb | tr '\n' , | FileCheck %s --check-prefix=CDATA
4444

4545
# RUN: ld.lld -o out.cbs a.o --verbose-bp-section-orderer --bp-compression-sort=both --irpgo-profile=a.profdata --bp-startup-sort=function 2>&1 | FileCheck %s --check-prefix=BP-COMPRESSION-BOTH
4646
# RUN: llvm-nm -jn out.cbs | tr '\n' , | FileCheck %s --check-prefix=CBOTH-STARTUP
47-
# CBOTH-STARTUP: s4,s2,s1,s5,s3,A,B,C,F,E,D,_start,d4,d1,d3,d2,
47+
# CBOTH-STARTUP: s5,s3,s4,s2,s1,A,B,C,F,E,D,_start,d4,d1,d3,d2,
4848

4949
# BP-COMPRESSION-FUNC: Ordered 7 sections using balanced partitioning
5050
# BP-COMPRESSION-DATA: Ordered 9 sections using balanced partitioning
@@ -100,8 +100,6 @@ E
100100
D
101101
s2
102102
s1
103-
r3
104-
r2
105103

106104
#--- a.c
107105
const char s5[] = "engineering";

0 commit comments

Comments
 (0)