xref: /llvm-project/bolt/test/runtime/X86/internal-call.test (revision d648aa1b8e937de1648524e1f1016b53b29ba2a4)
1# Verify that we support x86 old pic style internal calls accordingly in
2# relocation mode
3#
4
5REQUIRES: x86_64-linux
6
7RUN: %clang -O3 %S/Inputs/internalcall-main.c %S/Inputs/internalcall.S -Wl,-q \
8RUN:   -o %t.exe
9RUN: llvm-bolt %t.exe -o %t --relocs --lite=0
10RUN: %t | FileCheck %s
11
12CHECK:   Case 1: Result is: DEADBEEF
13CHECK:   Case 2: Result is: DEADBEEF
14CHECK:   Case 3: Result is: DEADBEEF
15