aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mips/blockdsp_mmi.c
diff options
context:
space:
mode:
authorJin Bo <jinbo@loongson.cn>2021-05-28 10:04:39 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2021-05-28 17:31:21 +0200
commitebedd26eefe2ff4bbf5a358907c4e8e4b0d62eae (patch)
treeb16ba0cf4b99941d2b4730bba833653d3f14f0fb /libavcodec/mips/blockdsp_mmi.c
parente41255cddb827ee152a58a60ed3ecd4dc6e79847 (diff)
downloadffmpeg-ebedd26eefe2ff4bbf5a358907c4e8e4b0d62eae.tar.gz
libavcodec/mips: Fix specification of instruction name
1.'xor,or,and' to 'pxor,por,pand'. In the case of operating FPR, gcc supports both of them, clang only supports the second type. 2.'dsrl,srl' to 'ssrld,ssrlw'. In the case of operating FPR, gcc supports both of them, clang only supports the second type. Signed-off-by: Jin Bo <jinbo@loongson.cn> Reviewed-by: yinshiyou-hf@loongson.cn Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mips/blockdsp_mmi.c')
-rw-r--r--libavcodec/mips/blockdsp_mmi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mips/blockdsp_mmi.c b/libavcodec/mips/blockdsp_mmi.c
index 68641e2544..8b5c7e955c 100644
--- a/libavcodec/mips/blockdsp_mmi.c
+++ b/libavcodec/mips/blockdsp_mmi.c
@@ -76,8 +76,8 @@ void ff_clear_block_mmi(int16_t *block)
double ftmp[2];
__asm__ volatile (
- "xor %[ftmp0], %[ftmp0], %[ftmp0] \n\t"
- "xor %[ftmp1], %[ftmp1], %[ftmp1] \n\t"
+ "pxor %[ftmp0], %[ftmp0], %[ftmp0] \n\t"
+ "pxor %[ftmp1], %[ftmp1], %[ftmp1] \n\t"
MMI_SQC1(%[ftmp0], %[ftmp1], %[block], 0x00)
MMI_SQC1(%[ftmp0], %[ftmp1], %[block], 0x10)
MMI_SQC1(%[ftmp0], %[ftmp1], %[block], 0x20)
@@ -97,8 +97,8 @@ void ff_clear_blocks_mmi(int16_t *block)
double ftmp[2];
__asm__ volatile (
- "xor %[ftmp0], %[ftmp0], %[ftmp0] \n\t"
- "xor %[ftmp1], %[ftmp1], %[ftmp1] \n\t"
+ "pxor %[ftmp0], %[ftmp0], %[ftmp0] \n\t"
+ "pxor %[ftmp1], %[ftmp1], %[ftmp1] \n\t"
MMI_SQC1(%[ftmp0], %[ftmp1], %[block], 0x00)
MMI_SQC1(%[ftmp0], %[ftmp1], %[block], 0x10)
MMI_SQC1(%[ftmp0], %[ftmp1], %[block], 0x20)