Re: [PATCH] LoongArch: Improve memory ops

From: Xi Ruoyao
Date: Mon Apr 10 2023 - 08:20:22 EST


On Mon, 2023-04-10 at 19:57 +0800, WANG rui wrote:
> +       /* align up address */
> +       andi    t1, a0, 7
> +       sub.d   a0, a0, t1

bstrins.d a0, zero, 2, 0

Likewise for other aligning operations if the temporary is not used.

> +       addi.d  a0, a0, 8

--
Xi Ruoyao <xry111@xxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University