brintos

brintos / llvm-project-archived public Read only

0
0
Text · 469 B · aeee302 Raw
14 lines · plain
1// Verify that PLTCall optimization works.2 3RUN: %clang %cflags -fpic -shared -xc /dev/null -o %t.so4// Link against a DSO to ensure PLT entries.5RUN: %clang %cflags %p/../Inputs/plt-tailcall.c %t.so \6RUN:    -o %t -Wl,-q7RUN: llvm-bolt %t -o %t.bolt --plt=all --print-plt  --print-only=foo | FileCheck %s8 9// Call to printf10CHECK: callq *printf@GOT(%rip) # PLTCall: 111 12// Call to puts, that was tail-call optimized13CHECK: jmpl *puts@GOT(%rip) # TAILCALL # PLTCall: 114