xref: /linux/tools/testing/selftests/powerpc/copyloops/asm/ppc_asm.h (revision 3932b9ca55b0be314a36d3e84faff3e823c081f5)
1 #include <ppc-asm.h>
2 
3 #define CONFIG_ALTIVEC
4 
5 #define r1	1
6 
7 #define vr0     0
8 #define vr1     1
9 #define vr2     2
10 #define vr3     3
11 #define vr4     4
12 #define vr5     5
13 #define vr6     6
14 #define vr7     7
15 #define vr8     8
16 #define vr9     9
17 #define vr10    10
18 #define vr11    11
19 #define vr12    12
20 #define vr13    13
21 #define vr14    14
22 #define vr15    15
23 #define vr16    16
24 #define vr17    17
25 #define vr18    18
26 #define vr19    19
27 #define vr20    20
28 #define vr21    21
29 #define vr22    22
30 #define vr23    23
31 #define vr24    24
32 #define vr25    25
33 #define vr26    26
34 #define vr27    27
35 #define vr28    28
36 #define vr29    29
37 #define vr30    30
38 #define vr31    31
39 
40 #define R14 r14
41 #define R15 r15
42 #define R16 r16
43 #define R17 r17
44 #define R18 r18
45 #define R19 r19
46 #define R20 r20
47 #define R21 r21
48 #define R22 r22
49 #define R29 r29
50 #define R30 r30
51 #define R31 r31
52 
53 #define STACKFRAMESIZE	256
54 #define STK_REG(i)	(112 + ((i)-14)*8)
55 
56 #define _GLOBAL(A) FUNC_START(test_ ## A)
57 #define _GLOBAL_TOC(A) _GLOBAL(A)
58 
59 #define PPC_MTOCRF(A, B)	mtocrf A, B
60 
61 FUNC_START(enter_vmx_usercopy)
62 	li	r3,1
63 	blr
64 
65 FUNC_START(exit_vmx_usercopy)
66 	li	r3,0
67 	blr
68 
69 FUNC_START(enter_vmx_copy)
70 	li	r3,1
71 	blr
72 
73 FUNC_START(exit_vmx_copy)
74 	blr
75 
76 FUNC_START(memcpy_power7)
77 	blr
78 
79 FUNC_START(__copy_tofrom_user_power7)
80 	blr
81 
82 FUNC_START(__copy_tofrom_user_base)
83 	blr
84 
85 #define BEGIN_FTR_SECTION
86 #define FTR_SECTION_ELSE
87 #define ALT_FTR_SECTION_END_IFCLR(x)
88 #define ALT_FTR_SECTION_END(x, y)
89 #define END_FTR_SECTION_IFCLR(x)
90