1 // This test checks that the foo function having exclusive memory access
2 // instructions won
't be instrumented.
4 // REQUIRES: system-linux,bolt-runtime,target=aarch64{{.*}}
6 // RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown \
8 // RUN: %clang %cflags -fPIC -pie %t.o -o %t.exe -nostdlib -Wl,-q -Wl,-fini=dummy
9 // RUN: llvm-bolt %t.exe -o %t.bolt -instrument -v=1 | FileCheck %s
11 // CHECK: Function foo has exclusive instructions, skip instrumentation
26 .type _start, %function
33 .size _start, .-_start
36 .type dummy, %function