From 9ddc216defd1fa85535cb91456a9f6c09a2c3abc Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 31 Jul 2026 20:40:33 -0400 Subject: [PATCH] AArch64: Fix ASM for x-only --- source/common/aarch64/intrapred.S | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/common/aarch64/intrapred.S b/source/common/aarch64/intrapred.S index 2f91ebfa3..1550ef528 100644 --- a/source/common/aarch64/intrapred.S +++ b/source/common/aarch64/intrapred.S @@ -32,10 +32,6 @@ .section .rodata #endif -.align 4 - -.text - .align 4 tbl_const_1to8_7to0: .byte 1, 2, 3, 4, 5, 6, 7, 8 @@ -43,6 +39,10 @@ tbl_const_1to8_7to0: .byte 9, 10, 11, 12, 13, 14, 15, 16 .byte 15, 14, 13, 12, 11, 10, 9, 8 +.text + +.align 4 + // ***** planar_pred ***** // void planar_pred(pixel* dst, intptr_t dstStride, const pixel* srcPix, int /*dirMode*/, int /*bFilter*/) function PFX(intra_pred_planar8_neon) @@ -77,7 +77,7 @@ function PFX(intra_pred_planar8_neon) ldr x3, [x2, #(2*8+1)] // x3 = left[x]_b ldr d0, [x2, #1] // v0 = above[x]_b - adr x4, tbl_const_1to8_7to0 + movrel x4, tbl_const_1to8_7to0 ldr d4, [x4] // v4 = const_b[8 7 6 5 4 3 2 1] ldr d5, [x4, #8] // v5 = const_b[7 6 5 4 3 2 1 0] @@ -135,7 +135,7 @@ function PFX(intra_pred_planar16_neon) dup v2.16b, w3 // v2 = topRight_b dup v3.8h, w4 // v3 = bottomLeft_h - adr x4, tbl_const_1to8_7to0 + movrel x4, tbl_const_1to8_7to0 ld2 {v4.2d, v5.2d}, [x4] // v4 = const_b[16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1] ext v5.16b, v5.16b, v5.16b, #8 // v5 = const_b[15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0]