llvm-project/bolt/test/X86/jmp-optimization.test

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
335 B
Plaintext
Raw Normal View History

# Tests the optimization of functions that just do a tail call in the beginning.
RUN: %clang %cflags -O2 %S/Inputs/jmp_opt{,2,3}.cpp -o %t
RUN: llvm-bolt -inline-small-functions %t -o %t.bolt
RUN: llvm-objdump -d %t.bolt --print-imm-hex | FileCheck %s
CHECK: <main>:
CHECK-NOT: call
CHECK: xorl %eax, %eax
CHECK: retq