1# This reproduces issue 177 from our github repo 2# AARCH64_MOVW_UABS_G* relocations handling 3 4# REQUIRES: system-linux 5 6# RUN: %clang %cflags -no-pie %s -o %t.exe -Wl,-q 7# RUN: llvm-bolt %t.exe -o %t.bolt --use-old-text=0 --lite=0 --trap-old-code 8# RUN: %t.bolt 9 10.text 11.align 4 12.global test 13.type test, %function 14test: 15mov x0, xzr 16ret 17.size test, .-test 18 19.align 4 20.global main 21.type main, %function 22main: 23movz x0, #:abs_g3:test 24movk x0, #:abs_g2_nc:test 25movk x0, #:abs_g1_nc:test 26movk x0, #:abs_g0_nc:test 27br x0 28.size main, .-main 29