]> Git Repo - qemu.git/blame - target/ppc/insn32.decode
target/ppc: Move D/DS/X-form integer stores to decodetree
[qemu.git] / target / ppc / insn32.decode
CommitLineData
99082815
RH
1#
2# Power ISA decode for 32-bit insns (opcode space 0)
3#
4# Copyright (c) 2021 Instituto de Pesquisas Eldorado (eldorado.org.br)
5#
6# This library is free software; you can redistribute it and/or
7# modify it under the terms of the GNU Lesser General Public
8# License as published by the Free Software Foundation; either
9# version 2.1 of the License, or (at your option) any later version.
10#
11# This library is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14# Lesser General Public License for more details.
15#
16# You should have received a copy of the GNU Lesser General Public
17# License along with this library; if not, see <http://www.gnu.org/licenses/>.
18#
5e560864
RH
19
20&D rt ra si:int64_t
21@D ...... rt:5 ra:5 si:s16 &D
22
f2aabda8
RH
23%ds_si 2:s14 !function=times_4
24@DS ...... rt:5 ra:5 .............. .. &D si=%ds_si
25
26&X rt ra rb
27@X ...... rt:5 ra:5 rb:5 .......... . &X
28
29### Fixed-Point Load Instructions
30
31LBZ 100010 ..... ..... ................ @D
32LBZU 100011 ..... ..... ................ @D
33LBZX 011111 ..... ..... ..... 0001010111 - @X
34LBZUX 011111 ..... ..... ..... 0001110111 - @X
35
36LHZ 101000 ..... ..... ................ @D
37LHZU 101001 ..... ..... ................ @D
38LHZX 011111 ..... ..... ..... 0100010111 - @X
39LHZUX 011111 ..... ..... ..... 0100110111 - @X
40
41LHA 101010 ..... ..... ................ @D
42LHAU 101011 ..... ..... ................ @D
43LHAX 011111 ..... ..... ..... 0101010111 - @X
44LHAXU 011111 ..... ..... ..... 0101110111 - @X
45
46LWZ 100000 ..... ..... ................ @D
47LWZU 100001 ..... ..... ................ @D
48LWZX 011111 ..... ..... ..... 0000010111 - @X
49LWZUX 011111 ..... ..... ..... 0000110111 - @X
50
51LWA 111010 ..... ..... ..............10 @DS
52LWAX 011111 ..... ..... ..... 0101010101 - @X
53LWAUX 011111 ..... ..... ..... 0101110101 - @X
54
55LD 111010 ..... ..... ..............00 @DS
56LDU 111010 ..... ..... ..............01 @DS
57LDX 011111 ..... ..... ..... 0000010101 - @X
58LDUX 011111 ..... ..... ..... 0000110101 - @X
59
e8f4c8d6
RH
60### Fixed-Point Store Instructions
61
62STB 100110 ..... ..... ................ @D
63STBU 100111 ..... ..... ................ @D
64STBX 011111 ..... ..... ..... 0011010111 - @X
65STBUX 011111 ..... ..... ..... 0011110111 - @X
66
67STH 101100 ..... ..... ................ @D
68STHU 101101 ..... ..... ................ @D
69STHX 011111 ..... ..... ..... 0110010111 - @X
70STHUX 011111 ..... ..... ..... 0110110111 - @X
71
72STW 100100 ..... ..... ................ @D
73STWU 100101 ..... ..... ................ @D
74STWX 011111 ..... ..... ..... 0010010111 - @X
75STWUX 011111 ..... ..... ..... 0010110111 - @X
76
77STD 111110 ..... ..... ..............00 @DS
78STDU 111110 ..... ..... ..............01 @DS
79STDX 011111 ..... ..... ..... 0010010101 - @X
80STDUX 011111 ..... ..... ..... 0010110101 - @X
81
5e560864
RH
82### Fixed-Point Arithmetic Instructions
83
84ADDI 001110 ..... ..... ................ @D
85ADDIS 001111 ..... ..... ................ @D
This page took 0.032214 seconds and 4 git commands to generate.