1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-09 10:12:38 -05:00

RISC-V: test for instruction extensions

This commit is contained in:
SChernykh
2025-10-22 19:14:01 +02:00
parent 75b63ddde9
commit 985fe06e8d
4 changed files with 54 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
/* RISC-V - test if the Zba extension is present */
.text
.global main
main:
sh1add x6, x6, x7
li x10, 0
ret

View File

@@ -0,0 +1,9 @@
/* RISC-V - test if the Zbb extension is present */
.text
.global main
main:
ror x6, x6, x7
li x10, 0
ret