blob: 92f4b9a14f0f4b3b31011f0b5bfa9442eafd7d44 [file] [log] [blame]
# Tests the optimization of functions that just do a tail call in the beginning.
# This test has commands that rely on shell capabilities that won't execute
# correctly on Windows e.g. unsupported parameter expansion
REQUIRES: shell
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