Files
clang-p2996/bolt/test/X86/tailcall-traps.test
Rafael Auler 2f3285989e [BOLT] Fix tailcall-traps and basic-instr tests on ubuntu
Summary: These tests are failing on opensource ubuntu.

(cherry picked from FBD32514489)
2021-11-17 15:38:36 -08:00

15 lines
458 B
Plaintext

# Tests the peephole that adds trap instructions following indirect tail calls.
RUN: %clang %cflags %p/Inputs/tailcall_traps.s -o %t.exe
RUN: llvm-bolt %t.exe -o %t -peepholes=tailcall-traps \
RUN: -print-peepholes -funcs=foo,bar 2>&1 | FileCheck %s
CHECK: Binary Function "foo"
CHECK: jmpl *%rax # TAILCALL
CHECK: ud2
CHECK: End of Function "foo"
CHECK: Binary Function "bar"
CHECK: jmp moo # TAILCALL
CHECK: End of Function "bar"