1/* 2* Copyright (C) 2025 Huawei Device Co., Ltd. 3* Licensed under the Apache License, Version 2.0 (the "License"); 4* you may not use this file except in compliance with the License. 5* You may obtain a copy of the License at 6* 7* http://www.apache.org/licenses/LICENSE-2.0 8* 9* Unless required by applicable law or agreed to in writing, software 10* distributed under the License is distributed on an "AS IS" BASIS, 11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12* See the License for the specific language governing permissions and 13* limitations under the License. 14*/ 15 .text 16 17 18 .globl abs64_test 19 .p2align 2 20 .type abs64_test,@function 21abs64_test: 22 adrp x8, :got:abs64_ptr1 23 ldr x8, [x8, :got_lo12:abs64_ptr1] 24 ldr x8, [x8] 25 ldr w8, [x8] 26 adrp x9, :got:abs64_ptr2 27 ldr x9, [x9, :got_lo12:abs64_ptr2] 28 ldr x9, [x9] 29 ldr w9, [x9] 30 add w0, w8, w9 31 ret 32.Lfunc_end0: 33 .size abs64_test, .Lfunc_end0-abs64_test 34 35 36 .type abs64_arr,@object 37 .data 38 .globl abs64_arr 39 .p2align 2 40abs64_arr: 41 .word 1 42 .word 2 43 .size abs64_arr, 8 44 45 46 .type abs64_ptr1,@object 47 .globl abs64_ptr1 48 .p2align 3 49abs64_ptr1: 50 .xword abs64_arr 51 .size abs64_ptr1, 8 52 53 54 .type abs64_ptr2,@object 55 .globl abs64_ptr2 56 .p2align 3 57abs64_ptr2: 58 .xword abs64_arr+4 59 .size abs64_ptr2, 8 60 61 62 63 .section ".note.GNU-stack","",@progbits 64 .addrsig 65 .addrsig_sym abs64_arr 66 .addrsig_sym abs64_ptr1 67 .addrsig_sym abs64_ptr2 68