File tree Expand file tree Collapse file tree 4 files changed +21
-0
lines changed
lldb/test/API/commands/register/register
aarch64_sve_simd_registers Expand file tree Collapse file tree 4 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1
1
#include <sys/auxv.h>
2
2
3
+ // If this program receives 0 arguments, it will use non-streaming SVE
4
+ // registers. If the number of arguments is >= 1, it will use streaming SVE
5
+ // registers.
6
+
3
7
#ifndef HWCAP2_SME
4
8
#define HWCAP2_SME (1 << 23)
5
9
#endif
Original file line number Diff line number Diff line change 2
2
#include <stdbool.h>
3
3
#include <sys/prctl.h>
4
4
5
+ // If USE_SSVE is defined, this program will use streaming mode SVE registers
6
+ // instead of non-streaming mode SVE registers.
7
+
5
8
#ifndef PR_SME_SET_VL
6
9
#define PR_SME_SET_VL 63
7
10
#endif
Original file line number Diff line number Diff line change 1
1
#include <stdbool.h>
2
2
#include <sys/prctl.h>
3
3
4
+ // If START_SSVE is defined, this program will start in streaming SVE mode
5
+ // (it will later enter and exit streaming mode a few times). Otherwise, it
6
+ // will start in non-streaming SVE mode.
7
+
4
8
#ifndef PR_SME_SET_VL
5
9
#define PR_SME_SET_VL 63
6
10
#endif
Original file line number Diff line number Diff line change 1
1
#include <stdint.h>
2
2
#include <sys/prctl.h>
3
3
4
+ // If SSVE is defined, this program will start in streaming SVE mode. Otherwise,
5
+ // if SVE is defined, it will start in non-streaming mode and activate the SVE
6
+ // registers by writing to one of them. If neither SSVE or SVE are defined,
7
+ // the program will start in non-streaming mode, with the SVE registers
8
+ // inactive.
9
+ //
10
+ // For most programs the difference between inactive non-streaming SVE and
11
+ // active is transparent. For lldb, there are some differences in how we use
12
+ // ptrace in either scenario.
13
+
4
14
// base is added to each value. If base = 2, then v0 = 2, v1 = 3, etc.
5
15
void write_simd_regs (unsigned base ) {
6
16
#define WRITE_SIMD (NUM ) \
You can’t perform that action at this time.
0 commit comments