Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / tools / testing / selftests / powerpc / copyloops / asm / ppc_asm.h
blobd1dc37425510f73cd168dfc21d809267c7e56412
1 #include <ppc-asm.h>
3 #define CONFIG_ALTIVEC
5 #define r1 1
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
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
53 #define STACKFRAMESIZE 256
54 #define STK_REG(i) (112 + ((i)-14)*8)
56 #define _GLOBAL(A) FUNC_START(test_ ## A)
57 #define _GLOBAL_TOC(A) _GLOBAL(A)
59 #define PPC_MTOCRF(A, B) mtocrf A, B
61 FUNC_START(enter_vmx_usercopy)
62 li r3,1
63 blr
65 FUNC_START(exit_vmx_usercopy)
66 li r3,0
67 blr
69 FUNC_START(enter_vmx_copy)
70 li r3,1
71 blr
73 FUNC_START(exit_vmx_copy)
74 blr
76 FUNC_START(memcpy_power7)
77 blr
79 FUNC_START(__copy_tofrom_user_power7)
80 blr
82 FUNC_START(__copy_tofrom_user_base)
83 blr
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)