brintos

brintos / llvm-project-archived public Read only

0
0
Text · 963 B · 2dd06b3 Raw
36 lines · plain
1// This tests checks the minimum alignment of the AARch64 function2// is equal to 4. Otherwise the jitlinker would fail to link the3// binary since the size of the first function after reorder is not4// not a multiple of 4.5 6# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o7# RUN: %clang %cflags -fPIC -pie %t.o -o %t.exe -nostdlib -Wl,-q8# RUN: link_fdata %s %t.o %t.fdata9# RUN: llvm-bolt %t.exe -o %t.bolt --use-old-text=0 --lite=0 \10# RUN:   --align-functions-max-bytes=1 \11# RUN:   --data %t.fdata --reorder-functions=exec-count12# RUN: llvm-nm -n %t.bolt | FileCheck %s13 14# CHECK: {{0|4|8|c}} T dummy15# CHECK-NEXT: {{0|4|8|c}} T _start16 17  .text18  .align 419  .global _start20  .type _start, %function21_start:22# FDATA: 0 [unknown] 0 1 _start 0 0 123   bl dymmy24   ret25  .size _start, .-_start26 27  .global dummy28  .type dummy, %function29dummy:30# FDATA: 0 [unknown] 0 1 dummy 0 0 4231  adr x0, .Lci32  ret33.Lci:34  .byte 035  .size dummy, .-dummy36