riscv: fix builds without Zbb support

This commit is contained in:
Rémi Denis-Courmont 2023-11-15 19:59:06 +02:00
parent 2d4aef8982
commit cd6089dc9c
1 changed files with 5 additions and 0 deletions

View File

@ -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