CACAO
Macros
md-asm.hpp File Reference

Go to the source code of this file.

Macros

#define zero   r0
 
#define a0   r3
 
#define a1   r4
 
#define a2   r5
 
#define a3   r6
 
#define a4   r7
 
#define a5   r8
 
#define a6   r9
 
#define a7   r10
 
#define itmp1   r11
 
#define itmp2   r12
 
#define pv   r14
 
#define s0   r15
 
#define itmp3   r16
 
#define t0   r17
 
#define t1   r18
 
#define t2   r19
 
#define t3   r20
 
#define t4   r21
 
#define t5   r22
 
#define t6   r23
 
#define s1   r24
 
#define s2   r25
 
#define s3   r26
 
#define s4   r27
 
#define s5   r28
 
#define s6   r29
 
#define s7   r30
 
#define s8   r31
 
#define v0   a0
 
#define v1   a1
 
#define xptr   itmp1
 
#define xpc   itmp2
 
#define mptr   r12
 
#define mptrn   12
 
#define ftmp3   fr0
 
#define fa0   f1
 
#define fa1   f2
 
#define fa2   f3
 
#define fa3   f4
 
#define fa4   f5
 
#define fa5   f6
 
#define fa6   f7
 
#define fa7   f8
 
#define fa8   f9
 
#define fa9   f10
 
#define fa10   f11
 
#define fa11   f12
 
#define fa12   f13
 
#define ftmp1   f16
 
#define ftmp2   f17
 
#define fs0   f14
 
#define fs1   f15
 
#define fs2   f18
 
#define fs3   f19
 
#define fs4   f20
 
#define fs5   f21
 
#define fs6   f22
 
#define fs7   f23
 
#define fs8   f24
 
#define fs9   f25
 
#define fs10   f26
 
#define fs11   f27
 
#define fs12   f28
 
#define fs13   f29
 
#define fs14   f30
 
#define fs15   f31
 
#define fv0   fa0
 
#define SAVE_ARGUMENT_REGISTERS(off)
 
#define RESTORE_ARGUMENT_REGISTERS(off)
 
#define SAVE_TEMPORARY_REGISTERS(off)
 
#define RESTORE_TEMPORARY_REGISTERS(off)
 

Macro Definition Documentation

#define a0   r3

Definition at line 43 of file md-asm.hpp.

#define a1   r4

Definition at line 44 of file md-asm.hpp.

#define a2   r5

Definition at line 45 of file md-asm.hpp.

#define a3   r6

Definition at line 46 of file md-asm.hpp.

#define a4   r7

Definition at line 47 of file md-asm.hpp.

#define a5   r8

Definition at line 48 of file md-asm.hpp.

#define a6   r9

Definition at line 49 of file md-asm.hpp.

#define a7   r10

Definition at line 50 of file md-asm.hpp.

#define fa0   f1

Definition at line 88 of file md-asm.hpp.

#define fa1   f2

Definition at line 89 of file md-asm.hpp.

#define fa10   f11

Definition at line 98 of file md-asm.hpp.

#define fa11   f12

Definition at line 99 of file md-asm.hpp.

#define fa12   f13

Definition at line 100 of file md-asm.hpp.

#define fa2   f3

Definition at line 90 of file md-asm.hpp.

#define fa3   f4

Definition at line 91 of file md-asm.hpp.

#define fa4   f5

Definition at line 92 of file md-asm.hpp.

#define fa5   f6

Definition at line 93 of file md-asm.hpp.

#define fa6   f7

Definition at line 94 of file md-asm.hpp.

#define fa7   f8

Definition at line 95 of file md-asm.hpp.

#define fa8   f9

Definition at line 96 of file md-asm.hpp.

#define fa9   f10

Definition at line 97 of file md-asm.hpp.

#define fs0   f14

Definition at line 105 of file md-asm.hpp.

#define fs1   f15

Definition at line 106 of file md-asm.hpp.

#define fs10   f26

Definition at line 115 of file md-asm.hpp.

#define fs11   f27

Definition at line 116 of file md-asm.hpp.

#define fs12   f28

Definition at line 117 of file md-asm.hpp.

#define fs13   f29

Definition at line 118 of file md-asm.hpp.

#define fs14   f30

Definition at line 119 of file md-asm.hpp.

#define fs15   f31

Definition at line 120 of file md-asm.hpp.

#define fs2   f18

Definition at line 107 of file md-asm.hpp.

#define fs3   f19

Definition at line 108 of file md-asm.hpp.

#define fs4   f20

Definition at line 109 of file md-asm.hpp.

#define fs5   f21

Definition at line 110 of file md-asm.hpp.

#define fs6   f22

Definition at line 111 of file md-asm.hpp.

#define fs7   f23

Definition at line 112 of file md-asm.hpp.

#define fs8   f24

Definition at line 113 of file md-asm.hpp.

#define fs9   f25

Definition at line 114 of file md-asm.hpp.

#define ftmp1   f16

Definition at line 102 of file md-asm.hpp.

#define ftmp2   f17

Definition at line 103 of file md-asm.hpp.

#define ftmp3   fr0

Definition at line 86 of file md-asm.hpp.

#define fv0   fa0

Definition at line 122 of file md-asm.hpp.

#define itmp1   r11

Definition at line 52 of file md-asm.hpp.

#define itmp2   r12

Definition at line 53 of file md-asm.hpp.

#define itmp3   r16

Definition at line 58 of file md-asm.hpp.

#define mptr   r12

Definition at line 82 of file md-asm.hpp.

#define mptrn   12

Definition at line 83 of file md-asm.hpp.

#define pv   r14

Definition at line 54 of file md-asm.hpp.

#define RESTORE_ARGUMENT_REGISTERS (   off)
Value:
ld a0,(0+(off))*8(sp); \
ld a1,(1+(off))*8(sp); \
ld a2,(2+(off))*8(sp); \
ld a3,(3+(off))*8(sp); \
ld a4,(4+(off))*8(sp); \
ld a5,(5+(off))*8(sp); \
ld a6,(6+(off))*8(sp); \
ld a7,(7+(off))*8(sp); \
\
lfd fa0,(8+(off))*8(sp); \
lfd fa1,(9+(off))*8(sp); \
lfd fa2,(10+(off))*8(sp); \
lfd fa3,(11+(off))*8(sp); \
lfd fa4,(12+(off))*8(sp); \
lfd fa5,(13+(off))*8(sp); \
lfd fa6,(14+(off))*8(sp); \
lfd fa7,(15+(off))*8(sp); \
lfd fa8,(16+(off))*8(sp); \
lfd fa9,(17+(off))*8(sp); \
lfd fa10,(18+(off))*8(sp); \
lfd fa11,(19+(off))*8(sp); \
lfd fa12,(20+(off))*8(sp);
#define fa4
Definition: md-asm.hpp:92
#define fa8
Definition: md-asm.hpp:96
#define a2
Definition: md-asm.hpp:45
#define a5
Definition: md-asm.hpp:48
#define fa7
Definition: md-asm.hpp:95
#define a6
Definition: md-asm.hpp:49
#define fa10
Definition: md-asm.hpp:98
#define fa0
Definition: md-asm.hpp:88
#define fa2
Definition: md-asm.hpp:90
#define fa1
Definition: md-asm.hpp:89
#define a0
Definition: md-asm.hpp:43
#define a4
Definition: md-asm.hpp:47
#define fa11
Definition: md-asm.hpp:99
#define fa9
Definition: md-asm.hpp:97
#define fa3
Definition: md-asm.hpp:91
#define sp
Definition: md-asm.hpp:81
#define a7
Definition: md-asm.hpp:50
#define fa5
Definition: md-asm.hpp:93
#define a1
Definition: md-asm.hpp:44
#define fa6
Definition: md-asm.hpp:94
#define fa12
Definition: md-asm.hpp:100
#define a3
Definition: md-asm.hpp:46

Definition at line 151 of file md-asm.hpp.

#define RESTORE_TEMPORARY_REGISTERS (   off)
Value:
ld t0,(0+(off))*8(sp); \
ld t1,(1+(off))*8(sp); \
ld t2,(2+(off))*8(sp); \
ld t3,(3+(off))*8(sp); \
ld t4,(4+(off))*8(sp); \
ld t5,(5+(off))*8(sp); \
ld t6,(6+(off))*8(sp);
#define t5
Definition: md-asm.hpp:64
#define t1
Definition: md-asm.hpp:60
#define t2
Definition: md-asm.hpp:61
#define t4
Definition: md-asm.hpp:63
#define sp
Definition: md-asm.hpp:81
#define t3
Definition: md-asm.hpp:62
#define t6
Definition: md-asm.hpp:65
#define t0
Definition: md-asm.hpp:59

Definition at line 194 of file md-asm.hpp.

#define s0   r15

Definition at line 56 of file md-asm.hpp.

#define s1   r24

Definition at line 67 of file md-asm.hpp.

#define s2   r25

Definition at line 68 of file md-asm.hpp.

#define s3   r26

Definition at line 69 of file md-asm.hpp.

#define s4   r27

Definition at line 70 of file md-asm.hpp.

#define s5   r28

Definition at line 71 of file md-asm.hpp.

#define s6   r29

Definition at line 72 of file md-asm.hpp.

#define s7   r30

Definition at line 73 of file md-asm.hpp.

#define s8   r31

Definition at line 74 of file md-asm.hpp.

#define SAVE_ARGUMENT_REGISTERS (   off)
Value:
std a0,(0+(off))*8(sp); \
std a1,(1+(off))*8(sp); \
std a2,(2+(off))*8(sp); \
std a3,(3+(off))*8(sp); \
std a4,(4+(off))*8(sp); \
std a5,(5+(off))*8(sp); \
std a6,(6+(off))*8(sp); \
std a7,(7+(off))*8(sp); \
\
stfd fa0,(8+(off))*8(sp); \
stfd fa1,(9+(off))*8(sp); \
stfd fa2,(10+(off))*8(sp); \
stfd fa3,(11+(off))*8(sp); \
stfd fa4,(12+(off))*8(sp); \
stfd fa5,(13+(off))*8(sp); \
stfd fa6,(14+(off))*8(sp); \
stfd fa7,(15+(off))*8(sp); \
stfd fa8,(16+(off))*8(sp); \
stfd fa9,(17+(off))*8(sp); \
stfd fa10,(18+(off))*8(sp);\
stfd fa11,(19+(off))*8(sp);\
stfd fa12,(20+(off))*8(sp);\
#define fa4
Definition: md-asm.hpp:92
#define fa8
Definition: md-asm.hpp:96
#define a2
Definition: md-asm.hpp:45
#define a5
Definition: md-asm.hpp:48
#define fa7
Definition: md-asm.hpp:95
#define a6
Definition: md-asm.hpp:49
#define fa10
Definition: md-asm.hpp:98
#define fa0
Definition: md-asm.hpp:88
#define fa2
Definition: md-asm.hpp:90
#define fa1
Definition: md-asm.hpp:89
#define a0
Definition: md-asm.hpp:43
#define a4
Definition: md-asm.hpp:47
#define fa11
Definition: md-asm.hpp:99
#define fa9
Definition: md-asm.hpp:97
#define fa3
Definition: md-asm.hpp:91
#define sp
Definition: md-asm.hpp:81
#define a7
Definition: md-asm.hpp:50
#define fa5
Definition: md-asm.hpp:93
#define a1
Definition: md-asm.hpp:44
#define fa6
Definition: md-asm.hpp:94
#define fa12
Definition: md-asm.hpp:100
#define a3
Definition: md-asm.hpp:46

Definition at line 127 of file md-asm.hpp.

#define SAVE_TEMPORARY_REGISTERS (   off)
Value:
std t0,(0+(off))*8(sp); \
std t1,(1+(off))*8(sp); \
std t2,(2+(off))*8(sp); \
std t3,(3+(off))*8(sp); \
std t4,(4+(off))*8(sp); \
std t5,(5+(off))*8(sp); \
std t6,(6+(off))*8(sp);
#define t5
Definition: md-asm.hpp:64
#define t1
Definition: md-asm.hpp:60
#define t2
Definition: md-asm.hpp:61
#define t4
Definition: md-asm.hpp:63
#define sp
Definition: md-asm.hpp:81
#define t3
Definition: md-asm.hpp:62
#define t6
Definition: md-asm.hpp:65
#define t0
Definition: md-asm.hpp:59

Definition at line 176 of file md-asm.hpp.

#define t0   r17

Definition at line 59 of file md-asm.hpp.

#define t1   r18

Definition at line 60 of file md-asm.hpp.

#define t2   r19

Definition at line 61 of file md-asm.hpp.

#define t3   r20

Definition at line 62 of file md-asm.hpp.

#define t4   r21

Definition at line 63 of file md-asm.hpp.

#define t5   r22

Definition at line 64 of file md-asm.hpp.

#define t6   r23

Definition at line 65 of file md-asm.hpp.

#define v0   a0

Definition at line 76 of file md-asm.hpp.

#define v1   a1

Definition at line 77 of file md-asm.hpp.

#define xpc   itmp2

Definition at line 80 of file md-asm.hpp.

#define xptr   itmp1

Definition at line 79 of file md-asm.hpp.

#define zero   r0

Definition at line 39 of file md-asm.hpp.