Skip to content

Commit 8dc8490

Browse files
committed
Add test for ifunc case
Created using spr 1.3.6-beta.1
1 parent c2d4697 commit 8dc8490

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lld/test/ELF/x86-64-branch-to-branch.s

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jmp f2
4848
# branching to the `jmp f3` at the start of the target section.
4949
# CHECK-NEXT: jmp {{.*}} <f4{{.*}}>
5050
jmp f4
51+
# B2B-NEXT: jmp 0x[[IPLT:[0-9a-f]*]]
52+
jmp f5
5153

5254
.section .text.f1,"ax"
5355
.globl f1
@@ -71,3 +73,12 @@ jmp f3
7173
jmp f3
7274
f4:
7375
ret
76+
77+
.section .text.f5,"ax"
78+
.type f5, @gnu_indirect_function
79+
.globl f5
80+
f5:
81+
jmp f3
82+
83+
# B2B: <.iplt>:
84+
# B2B-NEXT: [[IPLT]]:

0 commit comments

Comments
 (0)