RISC-V: test for instruction extensions

This commit is contained in:
SChernykh
2025-10-22 19:14:01 +02:00
parent 13735345ea
commit 501152e73a
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