File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
// Test how BOLT handles indirect branch sequence of instructions in
2
2
// AArch64MCPlus builder.
3
- // This test checks th at case when we have no shift amount after add
4
- // instruction. This pattern comes from libc , so needs to build '-static'
5
- // binary to reproduce the issue easily .
3
+ // This test checks the pattern where there is no shift amount after add
4
+ // instruction. The pattern come from libc , it can be reproduced with
5
+ // a 'static' built binary .
6
6
//
7
7
// adr x6 , 0x219fb0 <sigall_set + 0x88 >
8
8
// add x6 , x6 , x14 , lsl # 2
9
9
// ldr w7 , [ x6 ]
10
10
// add x6 , x6 , w7 , sxtw => no shift amount
11
11
// br x6
12
- // It also tests another case when we use '-fuse-ld=lld' along with '-static'
13
- // which produces the following sequence of intsructions:
12
+ //
13
+ // It also tests another case where there is no adrp/ add pair.
14
+ // The pattern also come from libc , and it only represents in the binary
15
+ // if the lld linker is used to create the static binary.
16
+ // It doesn't occur with GCC ld linker.
14
17
//
15
18
// nop => nop /adr instead of adrp/ add
16
19
// adr x13 , 0x215a18 <_nl_value_type_LC_COLLATE + 0x50 >
You can’t perform that action at this time.
0 commit comments