xref: /openbmc/qemu/target/mips/tcg/loong-ext.decode (revision 020cafa5)
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
17DIV_G           011100 ..... ..... ..... 00000 010100   @rs_rt_rd
18DDIV_G          011100 ..... ..... ..... 00000 010101   @rs_rt_rd
19DIVU_G          011100 ..... ..... ..... 00000 010110   @rs_rt_rd
20DDIVU_G         011100 ..... ..... ..... 00000 010111   @rs_rt_rd
21
22MOD_G           011100 ..... ..... ..... 00000 011100   @rs_rt_rd
23DMOD_G          011100 ..... ..... ..... 00000 011101   @rs_rt_rd
24MODU_G          011100 ..... ..... ..... 00000 011110   @rs_rt_rd
25DMODU_G         011100 ..... ..... ..... 00000 011111   @rs_rt_rd
26