brintos

brintos / llvm-project-archived public Read only

0
0
Text · 462 B · ab4fcf1 Raw
15 lines · plain
1## Tests the peephole that adds trap instructions following indirect tail calls.2 3RUN: %clang %cflags %p/Inputs/tailcall_traps.s -o %t.exe4RUN: llvm-bolt %t.exe -o %t --peepholes=tailcall-traps \5RUN:   --print-peepholes --funcs=foo,bar 2>&1 | FileCheck %s6 7CHECK:  Binary Function "foo"8CHECK:    jmpl     *%rax # TAILCALL9CHECK:    ud210CHECK:  End of Function "foo"11 12CHECK:  Binary Function "bar"13CHECK:    jmp     moo # TAILCALL14CHECK:  End of Function "bar"15