-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathencoding.txt
21 lines (19 loc) · 2.08 KB
/
encoding.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
+=====================+======================+==========+=====================+=========+=============+
| class | instruction | format | f7 | f3 | custom |
+=====================+======================+==========+=====================+=========+=============+
| | | | | | |
| ASCON_RV32_TYPE2 | ascon.sigma.lo | 2R+I->1R | 00 : imm5 | 7 = 111 | 1 = 0101011 |
| ASCON_RV32_TYPE2 | ascon.sigma.hi | 2R+I->1R | 01 : imm5 | 7 = 111 | 1 = 0101011 |
| | | | | | |
| ASCON_RV64_TYPE2 | ascon.sigma | 1R+I->1R | 10 : imm5 | 6 = 110 | 1 = 0101011 |
| | | | | | |
+=====================+======================+==========+=====================+=========+=============+
.macro ascon.sigma.lo rd, rs1, rs2, imm // ascon.sigma.lo => 00ii iiir rrrr rrrr r111 rrrr r010 1011
.insn r CUSTOM_1, 7, \imm+( 0*32), \rd, \rs1, \rs2 // => #define MATCH_ASCON_SIGMA_LO 0x0000702B
.endm // => #define MASK_ASCON_SIGMA_LO 0xC000707F
.macro ascon.sigma.hi rd, rs1, rs2, imm // ascon.sigma.hi => 01ii iiir rrrr rrrr r111 rrrr r010 1011
.insn r CUSTOM_1, 7, \imm+( 1*32), \rd, \rs1, \rs2 // => #define MATCH_ASCON_SIGMA_HI 0x4000702B
.endm // => #define MASK_ASCON_SIGMA_HI 0xC000707F
.macro ascon.sigma rd, rs1, imm // ascon.sigma => 10ii iii0 0000 rrrr r110 rrrr r010 1011
.insn r CUSTOM_1, 6, \imm+( 2*32), \rd, \rs1, x0 // => #define MATCH_ASCON_SIGMA 0x8000602B
.endm // => #define MASK_ASCON_SIGMA 0xC000707F