mirror of
https://github.com/xmrig/xmrig.git
synced 2026-04-18 13:22:43 -04:00
RISC-V: vectorized RandomX main loop
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
/* RISC-V - test if the vector extension and prefetch instruction are present */
|
||||
/* RISC-V - test if the vector extension is present */
|
||||
|
||||
.text
|
||||
.option arch, rv64gcv_zicbop
|
||||
.option arch, rv64gcv
|
||||
.global main
|
||||
|
||||
main:
|
||||
lla x5, main
|
||||
prefetch.r (x5)
|
||||
li x5, 4
|
||||
vsetvli x6, x5, e64, m1, ta, ma
|
||||
vxor.vv v0, v0, v0
|
||||
|
||||
11
src/crypto/randomx/tests/riscv64_zicbop.s
Normal file
11
src/crypto/randomx/tests/riscv64_zicbop.s
Normal file
@@ -0,0 +1,11 @@
|
||||
/* RISC-V - test if the prefetch instruction is present */
|
||||
|
||||
.text
|
||||
.option arch, rv64gc_zicbop
|
||||
.global main
|
||||
|
||||
main:
|
||||
lla x5, main
|
||||
prefetch.r (x5)
|
||||
mv x10, x0
|
||||
ret
|
||||
Reference in New Issue
Block a user