xref: /openbmc/qemu/target/mips/tcg/loong-ext.decode (revision 9529aa6b)
1# Loongson 64-bit Extension instructions
2#
3# Copyright (C) 2021  Philippe Mathieu-Daudé
4#
5# SPDX-License-Identifier: LGPL-2.1-or-later
6#
7# Reference:
8#       STLS2F01 User Manual
9#       Appendix A: new integer instructions
10#       (Document Number: UM0447)
11#
12
13&muldiv         rs rt rd !extern
14
15@rs_rt_rd       ...... rs:5  rt:5  rd:5  ..... ......   &muldiv
16
17MULTu_G         011100 ..... ..... ..... 00000 0100-0   @rs_rt_rd
18DMULTu_G        011100 ..... ..... ..... 00000 0100-1   @rs_rt_rd
19
20DIV_G           011100 ..... ..... ..... 00000 010100   @rs_rt_rd
21DDIV_G          011100 ..... ..... ..... 00000 010101   @rs_rt_rd
22DIVU_G          011100 ..... ..... ..... 00000 010110   @rs_rt_rd
23DDIVU_G         011100 ..... ..... ..... 00000 010111   @rs_rt_rd
24
25MOD_G           011100 ..... ..... ..... 00000 011100   @rs_rt_rd
26DMOD_G          011100 ..... ..... ..... 00000 011101   @rs_rt_rd
27MODU_G          011100 ..... ..... ..... 00000 011110   @rs_rt_rd
28DMODU_G         011100 ..... ..... ..... 00000 011111   @rs_rt_rd
29