// RUN: %clang %cflags64 -o %t %s // RUN: llvm-bolt --print-fix-riscv-calls --print-only=_start -o %t.null %t \ // RUN: | FileCheck %s // RUN: llvm-mc -triple riscv32 -mattr=+c -filetype=obj -o %t.rv32.o %s // RUN: ld.lld -q -o %t.rv32 %t.rv32.o // RUN: llvm-bolt --print-fix-riscv-calls --print-only=_start \ // RUN: -o %t.rv32.null %t.rv32 | FileCheck %s .text .global f .p2align 1 f: ret .size f, .-f // CHECK: Binary Function "_start" after fix-riscv-calls { .globl _start .p2align 1 _start: // CHECK: call f call f ret .size _start, .-_start