24 lines · plain
1## Check that if a data marker is present at the start of a function, the2## underlying bytes are still treated as code.3 4# RUN: %clang %cflags %s -o %t.exe5# RUN: llvm-bolt %t.exe -o %t.bolt --print-cfg 2>&1 | FileCheck %s6 7# CHECK: BOLT-WARNING: ignoring data marker conflicting with function symbol _start8 9.text10.balign 411 12## Data marker is emitted because ".long" directive is used instead of ".inst".13.global _start14.type _start, %function15_start:16 .long 0xcec08000 // sha512su0 v0.2d, v0.2d17 ret18.size _start, .-_start19 20# CHECK-LABEL: Binary Function "_start"21# CHECK: Entry Point22# CHECK-NEXT: sha512su0 v0.2d, v0.2d23 24