]>
Commit | Line | Data |
---|---|---|
0e68e240 RH |
1 | # |
2 | # RISC-V translation routines for the RVXI Base Integer Instruction Set. | |
3 | # | |
4 | # Copyright (c) 2018 Peer Adelt, [email protected] | |
5 | # Bastian Koppelmann, [email protected] | |
6 | # | |
7 | # This program is free software; you can redistribute it and/or modify it | |
8 | # under the terms and conditions of the GNU General Public License, | |
9 | # version 2 or later, as published by the Free Software Foundation. | |
10 | # | |
11 | # This program is distributed in the hope it will be useful, but WITHOUT | |
12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
14 | # more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public License along with | |
17 | # this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | # *** RV64C Standard Extension (Quadrant 0) *** | |
20 | ld 011 ... ... .. ... 00 @cl_d | |
21 | sd 111 ... ... .. ... 00 @cs_d | |
22 | ||
23 | # *** RV64C Standard Extension (Quadrant 1) *** | |
4cc16b3b RH |
24 | { |
25 | illegal 001 - 00000 ----- 01 # c.addiw, RES rd=0 | |
26 | addiw 001 . ..... ..... 01 @ci | |
27 | } | |
0e68e240 RH |
28 | subw 100 1 11 ... 00 ... 01 @cs_2 |
29 | addw 100 1 11 ... 01 ... 01 @cs_2 | |
30 | ||
31 | # *** RV64C Standard Extension (Quadrant 2) *** | |
4cc16b3b RH |
32 | { |
33 | illegal 011 - 00000 ----- 10 # c.ldsp, RES rd=0 | |
34 | ld 011 . ..... ..... 10 @c_ldsp | |
35 | } | |
0e68e240 | 36 | sd 111 . ..... ..... 10 @c_sdsp |