mirror of
https://github.com/xmrig/xmrig.git
synced 2026-04-18 05:22:28 -04:00
RISC-V: use vector hardware AES instead of scalar
This commit is contained in:
13
src/crypto/randomx/tests/riscv64_zvkb.s
Normal file
13
src/crypto/randomx/tests/riscv64_zvkb.s
Normal file
@@ -0,0 +1,13 @@
|
||||
/* RISC-V - test if the vector bit manipulation extension is present */
|
||||
|
||||
.text
|
||||
.option arch, rv64gcv_zvkb
|
||||
.global main
|
||||
|
||||
main:
|
||||
vsetivli zero, 8, e32, m1, ta, ma
|
||||
vror.vv v0, v0, v0
|
||||
vror.vx v0, v0, x5
|
||||
vror.vi v0, v0, 1
|
||||
li x10, 0
|
||||
ret
|
||||
12
src/crypto/randomx/tests/riscv64_zvkned.s
Normal file
12
src/crypto/randomx/tests/riscv64_zvkned.s
Normal file
@@ -0,0 +1,12 @@
|
||||
/* RISC-V - test if the vector bit manipulation extension is present */
|
||||
|
||||
.text
|
||||
.option arch, rv64gcv_zvkned
|
||||
.global main
|
||||
|
||||
main:
|
||||
vsetivli zero, 8, e32, m1, ta, ma
|
||||
vaesem.vv v0, v0
|
||||
vaesdm.vv v0, v0
|
||||
li x10, 0
|
||||
ret
|
||||
Reference in New Issue
Block a user