mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
16 lines
300 B
C
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);
|
|
}
|