From cd6089dc9ce9406274ca08ea14df95cff0133fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 15 Nov 2023 19:59:06 +0200 Subject: [PATCH] riscv: fix builds without Zbb support --- libavutil/riscv/asm.S | 5 +++++ 1 file changed, 5 insertions(+) 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