Files
linux-kernel-module-cheat/userland/arch/aarch64/inline_asm/sve_addvl.c
Ciro Santilli 六四事件 法轮功 02018daa95 arm: sve_addvl test program that prints sve length
2019-10-30 22:00:02 +00:00

16 lines
300 B
C

/* https://cirosantilli.com/linux-kernel-module-cheat#arm-sve-vaddl-instruction */
#include <inttypes.h>
#include <stdio.h>
int main(void) {
uint64_t vl = 0;
__asm__ (
"addvl %[vl], %[vl], #8"
: [vl] "+r" (vl)
:
:
);
printf("0x%" PRIX64 "\n", vl);
}