Skip to content

Commit 06fe34d

Browse files
committed
Added plt call (return from external location) test case
Created using spr 1.3.4
1 parent 9e4dd66 commit 06fe34d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bolt/test/X86/callcont-fallthru.s

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ main:
2727
movl $0x0, -0x4(%rbp)
2828
movl %edi, -0x8(%rbp)
2929
movq %rsi, -0x10(%rbp)
30+
callq puts@PLT
31+
# PREAGG: B X:0 #Ltmp1# 2 0
32+
# CHECK: callq puts@PLT
33+
# CHECK-NEXT: count: 2
34+
35+
Ltmp1:
3036
movq -0x10(%rbp), %rax
3137
movq 0x8(%rax), %rdi
3238
movl %eax, -0x14(%rbp)
@@ -51,6 +57,7 @@ Ltmp2:
5157
movl %eax, -0x18(%rbp)
5258
jmp Ltmp3
5359
jmp Ltmp4
60+
jmp Ltmp1
5461

5562
Ltmp0:
5663
xorl %eax, %eax

0 commit comments

Comments
 (0)