|
37 | 37 |
|
38 | 38 | # 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
|
39 | 39 | # 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-DAG: s4,s2,s1 |
| 41 | +# CDATA-DAG: s5,s3 |
| 42 | +# CDATA: F,C,E,D,B,A,_start,d4,d1,d3,d2, |
41 | 43 |
|
42 | 44 | # 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
|
43 | 45 | # RUN: llvm-nm -jn out.cb | tr '\n' , | FileCheck %s --check-prefix=CDATA
|
44 | 46 |
|
45 | 47 | # 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
|
46 | 48 | # 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, |
| 49 | +# CBOTH-STARTUP-DAG: s4,s2,s1, |
| 50 | +# CBOTH-STARTUP-DAG: s5,s3 |
| 51 | +# CBOTH-STARTUP: A,B,C,F,E,D,_start,d4,d1,d3,d2, |
48 | 52 |
|
49 | 53 | # BP-COMPRESSION-FUNC: Ordered 7 sections using balanced partitioning
|
50 | 54 | # BP-COMPRESSION-DATA: Ordered 9 sections using balanced partitioning
|
|
100 | 104 | D
|
101 | 105 | s2
|
102 | 106 | s1
|
103 |
| -r3 |
104 |
| -r2 |
105 | 107 |
|
106 | 108 | #--- a.c
|
107 | 109 | const char s5[] = "engineering";
|
|
0 commit comments