diff mbox series

[FFmpeg-devel] riscv: fix builds without Zbb support

Message ID 20231115175922.46597-1-remi@remlab.net
State Accepted
Commit cd6089dc9ce9406274ca08ea14df95cff0133fd3
Headers show
Series [FFmpeg-devel] riscv: fix builds without Zbb support | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Rémi Denis-Courmont Nov. 15, 2023, 5:59 p.m. UTC
---
 libavutil/riscv/asm.S | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/libavutil/riscv/asm.S b/libavutil/riscv/asm.S
index 6ca74f263a..0a9e2e0d3f 100644
--- a/libavutil/riscv/asm.S
+++ b/libavutil/riscv/asm.S
@@ -92,6 +92,11 @@ 
         shnadd  3, \rd, \rs1, \rs2
         .endm
 #endif
+#if !defined (__riscv_zbb)
+        .macro  min rd, rs1, rs2
+        .insn r OP, 4, 5, \rd, \rs1, \rs2
+        .endm
+#endif
 
         /* Convenience macro to load a Vector type (vtype) as immediate */
         .macro  lvtypei rd, e, m=m1, tp=tu, mp=mu