aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mips/simple_idct_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/simple_idct_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/simple_idct_mmi.c')
-rw-r--r--libavcodec/mips/simple_idct_mmi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/mips/simple_idct_mmi.c b/libavcodec/mips/simple_idct_mmi.c
index e4b58dcfdd..ad068a8251 100644
--- a/libavcodec/mips/simple_idct_mmi.c
+++ b/libavcodec/mips/simple_idct_mmi.c
@@ -133,7 +133,7 @@ void ff_simple_idct_8_mmi(int16_t *block)
"psllh $f28, "#src1", $f30 \n\t" \
"dmtc1 $9, $f31 \n\t" \
"punpcklhw $f29, $f28, $f28 \n\t" \
- "and $f29, $f29, $f31 \n\t" \
+ "pand $f29, $f29, $f31 \n\t" \
"paddw $f28, $f28, $f29 \n\t" \
"punpcklwd "#src1", $f28, $f28 \n\t" \
"punpcklwd "#src2", $f28, $f28 \n\t" \
@@ -268,9 +268,9 @@ void ff_simple_idct_8_mmi(int16_t *block)
"punpcklwd $f8, $f27, $f29 \n\t"
"punpckhwd $f12, $f27, $f29 \n\t"
- "or $f26, $f2, $f6 \n\t"
- "or $f26, $f26, $f10 \n\t"
- "or $f26, $f26, $f14 \n\t"
+ "por $f26, $f2, $f6 \n\t"
+ "por $f26, $f26, $f10 \n\t"
+ "por $f26, $f26, $f14 \n\t"
"dmfc1 $10, $f26 \n\t"
"bnez $10, 1f \n\t"
/* case1: In this case, row[1,3,5,7] are all zero */
@@ -338,9 +338,9 @@ void ff_simple_idct_8_mmi(int16_t *block)
"punpcklwd $f9, $f27, $f29 \n\t"
"punpckhwd $f13, $f27, $f29 \n\t"
- "or $f26, $f3, $f7 \n\t"
- "or $f26, $f26, $f11 \n\t"
- "or $f26, $f26, $f15 \n\t"
+ "por $f26, $f3, $f7 \n\t"
+ "por $f26, $f26, $f11 \n\t"
+ "por $f26, $f26, $f15 \n\t"
"dmfc1 $10, $f26 \n\t"
"bnez $10, 1f \n\t"
/* case1: In this case, row[1,3,5,7] are all zero */