mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 05:24:25 +01:00
arm: sve_addvl test program that prints sve length
This commit is contained in:
10
userland/arch/aarch64/sve_addvl.S
Normal file
10
userland/arch/aarch64/sve_addvl.S
Normal file
@@ -0,0 +1,10 @@
|
||||
/* https://cirosantilli.com/linux-kernel-module-cheat#arm-sve-vaddl-instruction */
|
||||
|
||||
#include <lkmc.h>
|
||||
|
||||
LKMC_PROLOGUE
|
||||
mov x0, 0
|
||||
addvl x0, x0, 8
|
||||
bl lkmc_print_hex_64
|
||||
bl lkmc_print_newline
|
||||
LKMC_EPILOGUE
|
||||
Reference in New Issue
Block a user