xref: /linux/tools/testing/selftests/powerpc/stringloops/asm/ppc_asm.h (revision 34dc1baba215b826e454b8d19e4f24adbeb7d00d)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PPC_ASM_H
3 #define _PPC_ASM_H
4 #include <ppc-asm.h>
5 
6 #ifndef r1
7 #define r1 sp
8 #endif
9 
10 #define _GLOBAL(A) FUNC_START(test_ ## A)
11 #define _GLOBAL_TOC(A) FUNC_START(test_ ## A)
12 #define CFUNC(name) name
13 
14 #define CONFIG_ALTIVEC
15 
16 #define R14 r14
17 #define R15 r15
18 #define R16 r16
19 #define R17 r17
20 #define R18 r18
21 #define R19 r19
22 #define R20 r20
23 #define R21 r21
24 #define R22 r22
25 #define R29 r29
26 #define R30 r30
27 #define R31 r31
28 
29 #define STACKFRAMESIZE	256
30 #define STK_REG(i)	(112 + ((i)-14)*8)
31 
32 #define BEGIN_FTR_SECTION
33 #define END_FTR_SECTION_IFSET(val)
34 #endif
35