1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef __ASM_GPR_NUM_H
3 #define __ASM_GPR_NUM_H
4 
5 #ifdef __ASSEMBLY__
6 
7 	.equ	.L__gpr_num_zero, 0
8 	.irp	num,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
9 	.equ	.L__gpr_num_$r\num, \num
10 	.endr
11 
12 #else /* __ASSEMBLY__ */
13 
14 #define __DEFINE_ASM_GPR_NUMS					\
15 "	.equ	.L__gpr_num_zero, 0\n"				\
16 "	.irp	num,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31\n" \
17 "	.equ	.L__gpr_num_$r\\num, \\num\n"			\
18 "	.endr\n"						\
19 
20 #endif /* __ASSEMBLY__ */
21 
22 #endif /* __ASM_GPR_NUM_H */
23