From a91e95fca2222ac0731e987a07f4b11c670f4556 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Wed, 16 Nov 2016 10:49:14 +0200 Subject: [PATCH] aarch64: Clear the upper half of int parameters in x264_plane_copy_core_neon --- common/aarch64/mc-a.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/aarch64/mc-a.S b/common/aarch64/mc-a.S index 3a99fbed..9dcb4dbb 100644 --- a/common/aarch64/mc-a.S +++ b/common/aarch64/mc-a.S @@ -1254,8 +1254,9 @@ load_deinterleave_chroma: endfunc function x264_plane_copy_core_neon, export=1 - add x8, x4, #15 - and x4, x8, #~15 + add w8, w4, #15 // 32-bit write clears the upper 32-bit the register + and w4, w8, #~15 + // safe use of the full reg since negative width makes no sense sub x1, x1, x4 sub x3, x3, x4 1: -- 2.40.0