mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
lavu/riscv: fallback macros for SH{1, 2, 3}ADD
Those mnemonics require the very latest binutils release at the time of writing. These macros provide seamless backward compatibility.
This commit is contained in:
parent
1b6aee52a5
commit
39357cad37
@ -75,3 +75,22 @@
|
||||
.purgem endconst
|
||||
.endm
|
||||
.endm
|
||||
|
||||
#if !defined (__riscv_zba)
|
||||
/* SH{1,2,3}ADD definitions for pre-Zba assemblers */
|
||||
.macro shnadd n, rd, rs1, rs2
|
||||
.insn r OP, 2 * \n, 16, \rd, \rs1, \rs2
|
||||
.endm
|
||||
|
||||
.macro sh1add rd, rs1, rs2
|
||||
shnadd 1, \rd, \rs1, \rs2
|
||||
.endm
|
||||
|
||||
.macro sh2add rd, rs1, rs2
|
||||
shnadd 2, \rd, \rs1, \rs2
|
||||
.endm
|
||||
|
||||
.macro sh3add rd, rs1, rs2
|
||||
shnadd 3, \rd, \rs1, \rs2
|
||||
.endm
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user