MIPS: Use WSBH/DSBH/DSHD on Loongson 3A
Signed-off-by: chenj <chenj@lemote.com> Cc: linux-mips@linux-mips.org Cc: chenhc@lemote.com Patchwork: https://patchwork.linux-mips.org/patch/7542/ Patchwork: https://patchwork.linux-mips.org/patch/7550/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
@@ -277,9 +277,12 @@ LEAF(csum_partial)
|
||||
#endif
|
||||
|
||||
/* odd buffer alignment? */
|
||||
#ifdef CONFIG_CPU_MIPSR2
|
||||
#if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_CPU_LOONGSON3)
|
||||
.set push
|
||||
.set arch=mips32r2
|
||||
wsbh v1, sum
|
||||
movn sum, v1, t7
|
||||
.set pop
|
||||
#else
|
||||
beqz t7, 1f /* odd buffer alignment? */
|
||||
lui v1, 0x00ff
|
||||
@@ -726,9 +729,12 @@ LEAF(csum_partial)
|
||||
addu sum, v1
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CPU_MIPSR2
|
||||
#if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_CPU_LOONGSON3)
|
||||
.set push
|
||||
.set arch=mips32r2
|
||||
wsbh v1, sum
|
||||
movn sum, v1, odd
|
||||
.set pop
|
||||
#else
|
||||
beqz odd, 1f /* odd buffer alignment? */
|
||||
lui v1, 0x00ff
|
||||
|
Reference in New Issue
Block a user