(root)/
glibc-2.38/
sysdeps/
loongarch/
sys/
regdef.h
       1  /* Register Macro definitions
       2     Copyright (C) 2022-2023 Free Software Foundation, Inc.
       3     This file is part of the GNU C Library.
       4  
       5  
       6     The GNU C Library is free software; you can redistribute it and/or
       7     modify it under the terms of the GNU Lesser General Public
       8     License as published by the Free Software Foundation; either
       9     version 2.1 of the License, or (at your option) any later version.
      10  
      11     The GNU C Library is distributed in the hope that it will be useful,
      12     but WITHOUT ANY WARRANTY; without even the implied warranty of
      13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      14     Lesser General Public License for more details.
      15  
      16     You should have received a copy of the GNU Lesser General Public
      17     License along with the GNU C Library.  If not, see
      18     <https://www.gnu.org/licenses/>.  */
      19  
      20  #ifndef _SYS_REGDEF_H
      21  #define _SYS_REGDEF_H
      22  
      23  #define zero $r0
      24  #define ra $r1
      25  #define tp $r2
      26  #define sp $r3
      27  #define a0 $r4
      28  #define a1 $r5
      29  #define a2 $r6
      30  #define a3 $r7
      31  #define a4 $r8
      32  #define a5 $r9
      33  #define a6 $r10
      34  #define a7 $r11
      35  #define v0 $r4
      36  #define v1 $r5
      37  #define t0 $r12
      38  #define t1 $r13
      39  #define t2 $r14
      40  #define t3 $r15
      41  #define t4 $r16
      42  #define t5 $r17
      43  #define t6 $r18
      44  #define t7 $r19
      45  #define t8 $r20
      46  #define x $r21
      47  #define fp $r22
      48  #define s0 $r23
      49  #define s1 $r24
      50  #define s2 $r25
      51  #define s3 $r26
      52  #define s4 $r27
      53  #define s5 $r28
      54  #define s6 $r29
      55  #define s7 $r30
      56  #define s8 $r31
      57  
      58  #define fa0 $f0
      59  #define fa1 $f1
      60  #define fa2 $f2
      61  #define fa3 $f3
      62  #define fa4 $f4
      63  #define fa5 $f5
      64  #define fa6 $f6
      65  #define fa7 $f7
      66  #define fv0 $f0
      67  #define fv1 $f1
      68  #define ft0 $f8
      69  #define ft1 $f9
      70  #define ft2 $f10
      71  #define ft3 $f11
      72  #define ft4 $f12
      73  #define ft5 $f13
      74  #define ft6 $f14
      75  #define ft7 $f15
      76  #define ft8 $f16
      77  #define ft9 $f17
      78  #define ft10 $f18
      79  #define ft11 $f19
      80  #define ft12 $f20
      81  #define ft13 $f21
      82  #define ft14 $f22
      83  #define ft15 $f23
      84  #define fs0 $f24
      85  #define fs1 $f25
      86  #define fs2 $f26
      87  #define fs3 $f27
      88  #define fs4 $f28
      89  #define fs5 $f29
      90  #define fs6 $f30
      91  #define fs7 $f31
      92  
      93  #define vr0 $vr0
      94  #define vr1 $vr1
      95  #define vr2 $vr2
      96  #define vr3 $vr3
      97  #define vr4 $vr4
      98  #define vr5 $vr5
      99  #define vr6 $vr6
     100  #define vr7 $vr7
     101  
     102  #define xr0 $xr0
     103  #define xr1 $xr1
     104  #define xr2 $xr2
     105  #define xr3 $xr3
     106  #define xr4 $xr4
     107  #define xr5 $xr5
     108  #define xr6 $xr6
     109  #define xr7 $xr7
     110  
     111  #endif /* _SYS_REGDEF_H */