xref: /aosp_15_r20/external/llvm/test/MC/ARM/cxx-global-constructor.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc %s -mtriple=armv7-linux-gnueabi -relocation-model=pic \
2*9880d681SAndroid Build Coastguard Worker; RUN: -filetype=obj -o - | llvm-readobj -r | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker@llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @f }]
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine void @f() {
8*9880d681SAndroid Build Coastguard Worker  ret void
9*9880d681SAndroid Build Coastguard Worker}
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker; Check for a relocation of type R_ARM_TARGET1.
12*9880d681SAndroid Build Coastguard Worker; CHECK: Relocations [
13*9880d681SAndroid Build Coastguard Worker; CHECK:   0x{{[0-9,A-F]+}} R_ARM_TARGET1
14