1 // Verify that PLTCall optimization works.
3 RUN: %clang %cflags %p/../Inputs/plt-tailcall.c \
5 RUN: llvm-bolt %t -o %t.bolt --plt=all --print-plt --print-only=foo | FileCheck %s
8 CHECK: adrp x16, printf@GOT
9 CHECK: ldr x17, [x16, :lo12:printf@GOT]
10 CHECK: blr x17 # PLTCall: 1
12 // Call to puts, that was tail-call optimized
13 CHECK: adrp x16, puts@GOT
14 CHECK: ldr x17, [x16, :lo12:puts@GOT]
15 CHECK: br x17 # TAILCALL # PLTCall: 1