blob: 74d876b647e3473f547c8ad10d00bc768c8bae0a [file] [log] [blame]
// This test checks that ADR+LDR instruction sequence relaxed by the linker
// to the ADR+ADD sequence is properly reconized and handled by bolt
// RUN: yaml2obj %p/Inputs/got-ld64-relaxation.yaml &> %t.exe
// RUN: llvm-bolt %t.exe -o /dev/null --print-fix-relaxations \
// RUN: --print-only=main | FileCheck %s
// CHECK: adrp x0, foo
// CHECK-NEXT: add x0, x0, :lo12:foo