xref: /qemu/target/ppc/insn32.decode (revision a702c533)
199082815SRichard Henderson#
299082815SRichard Henderson# Power ISA decode for 32-bit insns (opcode space 0)
399082815SRichard Henderson#
499082815SRichard Henderson# Copyright (c) 2021 Instituto de Pesquisas Eldorado (eldorado.org.br)
599082815SRichard Henderson#
699082815SRichard Henderson# This library is free software; you can redistribute it and/or
799082815SRichard Henderson# modify it under the terms of the GNU Lesser General Public
899082815SRichard Henderson# License as published by the Free Software Foundation; either
999082815SRichard Henderson# version 2.1 of the License, or (at your option) any later version.
1099082815SRichard Henderson#
1199082815SRichard Henderson# This library is distributed in the hope that it will be useful,
1299082815SRichard Henderson# but WITHOUT ANY WARRANTY; without even the implied warranty of
1399082815SRichard Henderson# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1499082815SRichard Henderson# Lesser General Public License for more details.
1599082815SRichard Henderson#
1699082815SRichard Henderson# You should have received a copy of the GNU Lesser General Public
1799082815SRichard Henderson# License along with this library; if not, see <http://www.gnu.org/licenses/>.
1899082815SRichard Henderson#
195e560864SRichard Henderson
20eb69a84bSMatheus Ferst&A              frt fra frb frc rc:bool
21eb69a84bSMatheus Ferst@A              ...... frt:5 fra:5 frb:5 frc:5 ..... rc:1       &A
22eb69a84bSMatheus Ferst
235e560864SRichard Henderson&D              rt ra si:int64_t
245e560864SRichard Henderson@D              ...... rt:5 ra:5 si:s16                 &D
255e560864SRichard Henderson
268f0a4b6aSMatheus Ferst&D_bf           bf l:bool ra imm
278f0a4b6aSMatheus Ferst@D_bfs          ...... bf:3 - l:1 ra:5 imm:s16          &D_bf
288f0a4b6aSMatheus Ferst@D_bfu          ...... bf:3 - l:1 ra:5 imm:16           &D_bf
298f0a4b6aSMatheus Ferst
30e10271e1SMatheus Ferst%dq_si          4:s12  !function=times_16
31e10271e1SMatheus Ferst%dq_rtp         22:4   !function=times_2
32e10271e1SMatheus Ferst@DQ_rtp         ...... ....0 ra:5 ............ ....             &D rt=%dq_rtp si=%dq_si
33e10271e1SMatheus Ferst
3472b70d5cSLucas Mateus Castro (alqotel)%dq_rt_tsx      3:1 21:5
3572b70d5cSLucas Mateus Castro (alqotel)@DQ_TSX         ...... ..... ra:5 ............ ....             &D si=%dq_si rt=%dq_rt_tsx
3672b70d5cSLucas Mateus Castro (alqotel)
3796fa2632SLucas Mateus Castro (alqotel)%rt_tsxp        21:1 22:4 !function=times_2
3896fa2632SLucas Mateus Castro (alqotel)@DQ_TSXP        ...... ..... ra:5 ............ ....             &D si=%dq_si rt=%rt_tsxp
3996fa2632SLucas Mateus Castro (alqotel)
40f2aabda8SRichard Henderson%ds_si          2:s14  !function=times_4
41f2aabda8SRichard Henderson@DS             ...... rt:5 ra:5 .............. ..      &D si=%ds_si
42f2aabda8SRichard Henderson
43e10271e1SMatheus Ferst%ds_rtp         22:4   !function=times_2
44e10271e1SMatheus Ferst@DS_rtp         ...... ....0 ra:5 .............. ..             &D rt=%ds_rtp si=%ds_si
45e10271e1SMatheus Ferst
469193eaa9SMatheus Ferst&DX_b           vrt b
479193eaa9SMatheus Ferst%dx_b           6:10 16:5 0:1
489193eaa9SMatheus Ferst@DX_b           ...... vrt:5  ..... .......... ..... .          &DX_b b=%dx_b
499193eaa9SMatheus Ferst
50e7a5d578SMatheus Ferst&DX             rt d
51e7a5d578SMatheus Ferst%dx_d           6:s10 16:5 0:1
52e7a5d578SMatheus Ferst@DX             ...... rt:5  ..... .......... ..... .   &DX d=%dx_d
53e7a5d578SMatheus Ferst
5428110b72SMatheus Ferst&VA             vrt vra vrb rc
5528110b72SMatheus Ferst@VA             ...... vrt:5 vra:5 vrb:5 rc:5 ......    &VA
5628110b72SMatheus Ferst
576a394290SMatheus Ferst&VC             vrt vra vrb rc:bool
586a394290SMatheus Ferst@VC             ...... vrt:5 vra:5 vrb:5 rc:1 ..........        &VC
596a394290SMatheus Ferst
602c716b4dSMatheus Ferst&VN             vrt vra vrb sh
612c716b4dSMatheus Ferst@VN             ...... vrt:5 vra:5 vrb:5 .. sh:3 ......         &VN
622c716b4dSMatheus Ferst
63a5f56954SMatheus Ferst&VX             vrt vra vrb
64a5f56954SMatheus Ferst@VX             ...... vrt:5 vra:5 vrb:5 .......... .   &VX
65a5f56954SMatheus Ferst
66b58f3931SMatheus Ferst&VX_bf          bf vra vrb
67b58f3931SMatheus Ferst@VX_bf          ...... bf:3 .. vra:5 vrb:5 ...........          &VX_bf
68b58f3931SMatheus Ferst
6995f1ee28SMatheus Ferst&VX_mp          rt mp:bool vrb
7095f1ee28SMatheus Ferst@VX_mp          ...... rt:5 .... mp:1 vrb:5 ...........         &VX_mp
7195f1ee28SMatheus Ferst
72f622ebe7SMatheus Ferst&VX_n           rt vrb n
73f622ebe7SMatheus Ferst@VX_n           ...... rt:5 .. n:3 vrb:5 ...........            &VX_n
74f622ebe7SMatheus Ferst
75fb5303ccSMatheus Ferst&VX_tb_rc       vrt vrb rc:bool
76fb5303ccSMatheus Ferst@VX_tb_rc       ...... vrt:5 ..... vrb:5 rc:1 ..........        &VX_tb_rc
77fb5303ccSMatheus Ferst
7823832ae6SMatheus Ferst&VX_uim4        vrt uim vrb
7923832ae6SMatheus Ferst@VX_uim4        ...... vrt:5 . uim:4 vrb:5 ...........  &VX_uim4
8023832ae6SMatheus Ferst
815f1470b0SMatheus Ferst&VX_tb          vrt vrb
825f1470b0SMatheus Ferst@VX_tb          ...... vrt:5 ..... vrb:5 ...........    &VX_tb
835f1470b0SMatheus Ferst
84f2aabda8SRichard Henderson&X              rt ra rb
85f2aabda8SRichard Henderson@X              ...... rt:5 ra:5 rb:5 .......... .      &X
86f2aabda8SRichard Henderson
87afdc9310SLuis Pires&X_rc           rt ra rb rc:bool
88afdc9310SLuis Pires@X_rc           ...... rt:5 ra:5 rb:5 .......... rc:1           &X_rc
89afdc9310SLuis Pires
90afdc9310SLuis Pires%x_frtp         22:4 !function=times_2
91afdc9310SLuis Pires%x_frap         17:4 !function=times_2
92afdc9310SLuis Pires%x_frbp         12:4 !function=times_2
93afdc9310SLuis Pires@X_tp_ap_bp_rc  ...... ....0 ....0 ....0 .......... rc:1        &X_rc rt=%x_frtp ra=%x_frap rb=%x_frbp
94afdc9310SLuis Pires
95afdc9310SLuis Pires@X_tp_a_bp_rc   ...... ....0 ra:5 ....0 .......... rc:1         &X_rc rt=%x_frtp rb=%x_frbp
96afdc9310SLuis Pires
9767332e07SMatheus Ferst&X_tb           rt rb
9867332e07SMatheus Ferst@X_tb           ...... rt:5 ..... rb:5 .......... .             &X_tb
9967332e07SMatheus Ferst
100c8ef4d1eSLuis Pires&X_tb_rc        rt rb rc:bool
101c8ef4d1eSLuis Pires@X_tb_rc        ...... rt:5 ..... rb:5 .......... rc:1          &X_tb_rc
102c8ef4d1eSLuis Pires
103c8ef4d1eSLuis Pires@X_tbp_rc       ...... ....0 ..... ....0 .......... rc:1        &X_tb_rc rt=%x_frtp rb=%x_frbp
104c8ef4d1eSLuis Pires
105c8ef4d1eSLuis Pires@X_tp_b_rc      ...... ....0 ..... rb:5 .......... rc:1         &X_tb_rc rt=%x_frtp
106c8ef4d1eSLuis Pires
107c8ef4d1eSLuis Pires@X_t_bp_rc      ...... rt:5 ..... ....0 .......... rc:1         &X_tb_rc rb=%x_frbp
108c8ef4d1eSLuis Pires
1099a14365eSMatheus Ferst&X_bi           rt bi
1109a14365eSMatheus Ferst@X_bi           ...... rt:5 bi:5 ----- .......... -     &X_bi
1119a14365eSMatheus Ferst
11285c38a46SLuis Pires&X_bf           bf ra rb
11385c38a46SLuis Pires@X_bf           ...... bf:3 .. ra:5 rb:5 .......... .           &X_bf
11485c38a46SLuis Pires
11585c38a46SLuis Pires@X_bf_ap_bp     ...... bf:3 .. ....0 ....0 .......... .         &X_bf ra=%x_frap rb=%x_frbp
11685c38a46SLuis Pires
11785c38a46SLuis Pires@X_bf_a_bp      ...... bf:3 .. ra:5 ....0 .......... .          &X_bf rb=%x_frbp
11885c38a46SLuis Pires
11985c38a46SLuis Pires&X_bf_uim       bf uim rb
12085c38a46SLuis Pires@X_bf_uim       ...... bf:3 . uim:6 rb:5 .......... .           &X_bf_uim
12185c38a46SLuis Pires
12285c38a46SLuis Pires@X_bf_uim_bp    ...... bf:3 . uim:6 ....0 .......... .          &X_bf_uim rb=%x_frbp
12385c38a46SLuis Pires
1248f0a4b6aSMatheus Ferst&X_bfl          bf l:bool ra rb
1258f0a4b6aSMatheus Ferst@X_bfl          ...... bf:3 - l:1 ra:5 rb:5 ..........- &X_bfl
1268f0a4b6aSMatheus Ferst
1276166fcedSBruno Larsen (billionai)%x_xt           0:1 21:5
128b090f4f1SMatheus Ferst&X_imm5         xt imm:uint8_t vrb
129b090f4f1SMatheus Ferst@X_imm5         ...... ..... imm:5 vrb:5 .......... .           &X_imm5 xt=%x_xt
130b090f4f1SMatheus Ferst
1316166fcedSBruno Larsen (billionai)&X_imm8         xt imm:uint8_t
1326166fcedSBruno Larsen (billionai)@X_imm8         ...... ..... .. imm:8 .......... .              &X_imm8 xt=%x_xt
1336166fcedSBruno Larsen (billionai)
1346e26b85dSMatheus Ferst&X_uim5         xt uim:uint8_t
1356e26b85dSMatheus Ferst@X_uim5         ...... ..... ..... uim:5 .......... .           &X_uim5 xt=%x_xt
1366e26b85dSMatheus Ferst
137a2329747SLuis Pires&X_tb_sp_rc     rt rb sp rc:bool
138a2329747SLuis Pires@X_tb_sp_rc     ...... rt:5 sp:2 ... rb:5 .......... rc:1       &X_tb_sp_rc
139a2329747SLuis Pires
140a2329747SLuis Pires@X_tbp_sp_rc    ...... ....0 sp:2 ... ....0 .......... rc:1     &X_tb_sp_rc rt=%x_frtp rb=%x_frbp
141a2329747SLuis Pires
142a2329747SLuis Pires&X_tb_s_rc      rt rb s:bool rc:bool
143a2329747SLuis Pires@X_tb_s_rc      ...... rt:5 s:1 .... rb:5 .......... rc:1       &X_tb_s_rc
144a2329747SLuis Pires
145a2329747SLuis Pires@X_tbp_s_rc     ...... ....0 s:1 .... ....0 .......... rc:1     &X_tb_s_rc rt=%x_frtp rb=%x_frbp
146a2329747SLuis Pires
14770426b5bSLucas Mateus Castro (alqotel)%x_rt_tsx       0:1 21:5
14870426b5bSLucas Mateus Castro (alqotel)@X_TSX          ...... ..... ra:5 rb:5 .......... .             &X rt=%x_rt_tsx
149226ce506SLucas Mateus Castro (alqotel)@X_TSXP         ...... ..... ra:5 rb:5 .......... .             &X rt=%rt_tsxp
15070426b5bSLucas Mateus Castro (alqotel)
151d39b2cc7SLuis Pires&X_frtp_vrb     frtp vrb
152d39b2cc7SLuis Pires@X_frtp_vrb     ...... ....0 ..... vrb:5 .......... .           &X_frtp_vrb frtp=%x_frtp
153d39b2cc7SLuis Pires
154328747f3SLuis Pires&X_vrt_frbp     vrt frbp
155328747f3SLuis Pires@X_vrt_frbp     ...... vrt:5 ..... ....0 .......... .           &X_vrt_frbp frbp=%x_frbp
156328747f3SLuis Pires
157a702c533SLucas Mateus Castro (alqotel)&X_a            ra
158a702c533SLucas Mateus Castro (alqotel)@X_a            ...... ra:3 .. ..... ..... .......... .         &X_a
159a702c533SLucas Mateus Castro (alqotel)
160c5df1898SVictor Colombo%xx_xt          0:1 21:5
161c5df1898SVictor Colombo%xx_xb          1:1 11:5
162c5df1898SVictor Colombo%xx_xa          2:1 16:5
16343d55fc2SMatheus Ferst%xx_xc          3:1 6:5
1643909ff1fSVíctor Colombo&XX2            xt xb
1653909ff1fSVíctor Colombo@XX2            ...... ..... ..... ..... ......... ..           &XX2 xt=%xx_xt xb=%xx_xb
1663909ff1fSVíctor Colombo
1678f5eeee3SMatheus Ferst&XX2_uim        xt xb uim:uint8_t
1688f5eeee3SMatheus Ferst@XX2_uim2       ...... ..... ... uim:2 ..... ......... ..       &XX2_uim xt=%xx_xt xb=%xx_xb
1698f5eeee3SMatheus Ferst
1708f5eeee3SMatheus Ferst@XX2_uim4       ...... ..... . uim:4 ..... ......... ..         &XX2_uim xt=%xx_xt xb=%xx_xb
171c5df1898SVictor Colombo
172d518239bSVíctor Colombo&XX2_bf_xb      bf xb
173d518239bSVíctor Colombo@XX2_bf_xb      ...... bf:3 .. ..... ..... ......... . .        &XX2_bf_xb xb=%xx_xb
174d518239bSVíctor Colombo
175c5df1898SVictor Colombo&XX3            xt xa xb
176c5df1898SVictor Colombo@XX3            ...... ..... ..... ..... ........ ...           &XX3 xt=%xx_xt xa=%xx_xa xb=%xx_xb
17730dfca8dSBruno Larsen (billionai)
178d31b2c19SMatheus Ferst&XX3_dm         xt xa xb dm
179d31b2c19SMatheus Ferst@XX3_dm         ...... ..... ..... ..... . dm:2 ..... ...       &XX3_dm xt=%xx_xt xa=%xx_xa xb=%xx_xb
180d31b2c19SMatheus Ferst
18143d55fc2SMatheus Ferst&XX4            xt xa xb xc
18243d55fc2SMatheus Ferst@XX4            ...... ..... ..... ..... ..... .. ....          &XX4 xt=%xx_xt xa=%xx_xa xb=%xx_xb xc=%xx_xc
18343d55fc2SMatheus Ferst
18487bc8e52SLuis Pires&Z22_bf_fra     bf fra dm
18587bc8e52SLuis Pires@Z22_bf_fra     ...... bf:3 .. fra:5 dm:6 ......... .           &Z22_bf_fra
18687bc8e52SLuis Pires
18787bc8e52SLuis Pires%z22_frap       17:4 !function=times_2
18887bc8e52SLuis Pires@Z22_bf_frap    ...... bf:3 .. ....0 dm:6 ......... .           &Z22_bf_fra fra=%z22_frap
18987bc8e52SLuis Pires
190a2329747SLuis Pires&Z22_ta_sh_rc   rt ra sh rc:bool
191a2329747SLuis Pires@Z22_ta_sh_rc   ...... rt:5 ra:5 sh:6 ......... rc:1            &Z22_ta_sh_rc
192a2329747SLuis Pires
193a2329747SLuis Pires%z22_frtp       22:4 !function=times_2
194a2329747SLuis Pires@Z22_tap_sh_rc  ...... ....0 ....0 sh:6 ......... rc:1          &Z22_ta_sh_rc rt=%z22_frtp ra=%z22_frap
195a2329747SLuis Pires
196a8f4bce6SLuis Pires&Z23_tab        frt fra frb rmc rc:bool
197a8f4bce6SLuis Pires@Z23_tab        ...... frt:5 fra:5 frb:5 rmc:2 ........ rc:1    &Z23_tab
198a8f4bce6SLuis Pires
199a8f4bce6SLuis Pires%z23_frtp       22:4 !function=times_2
200a8f4bce6SLuis Pires%z23_frap       17:4 !function=times_2
201a8f4bce6SLuis Pires%z23_frbp       12:4 !function=times_2
202a8f4bce6SLuis Pires@Z23_tabp       ...... ....0 ....0 ....0 rmc:2 ........ rc:1    &Z23_tab frt=%z23_frtp fra=%z23_frap frb=%z23_frbp
203a8f4bce6SLuis Pires
204a8f4bce6SLuis Pires@Z23_tp_a_bp    ...... ....0 fra:5 ....0 rmc:2 ........ rc:1    &Z23_tab frt=%z23_frtp frb=%z23_frbp
205a8f4bce6SLuis Pires
20678464edbSLuis Pires&Z23_tb         frt frb r:bool rmc rc:bool
20778464edbSLuis Pires@Z23_tb         ...... frt:5 .... r:1 frb:5 rmc:2 ........ rc:1 &Z23_tb
20878464edbSLuis Pires
20978464edbSLuis Pires@Z23_tbp        ...... ....0 .... r:1 ....0 rmc:2 ........ rc:1 &Z23_tb frt=%z23_frtp frb=%z23_frbp
21078464edbSLuis Pires
21178464edbSLuis Pires&Z23_te_tb      te frt frb rmc rc:bool
21278464edbSLuis Pires@Z23_te_tb      ...... frt:5 te:5 frb:5 rmc:2 ........ rc:1     &Z23_te_tb
21378464edbSLuis Pires
21478464edbSLuis Pires@Z23_te_tbp     ...... ....0 te:5 ....0 rmc:2 ........ rc:1     &Z23_te_tb frt=%z23_frtp frb=%z23_frbp
21578464edbSLuis Pires
216f2aabda8SRichard Henderson### Fixed-Point Load Instructions
217f2aabda8SRichard Henderson
218f2aabda8SRichard HendersonLBZ             100010 ..... ..... ................     @D
219f2aabda8SRichard HendersonLBZU            100011 ..... ..... ................     @D
220f2aabda8SRichard HendersonLBZX            011111 ..... ..... ..... 0001010111 -   @X
221f2aabda8SRichard HendersonLBZUX           011111 ..... ..... ..... 0001110111 -   @X
222f2aabda8SRichard Henderson
223f2aabda8SRichard HendersonLHZ             101000 ..... ..... ................     @D
224f2aabda8SRichard HendersonLHZU            101001 ..... ..... ................     @D
225f2aabda8SRichard HendersonLHZX            011111 ..... ..... ..... 0100010111 -   @X
226f2aabda8SRichard HendersonLHZUX           011111 ..... ..... ..... 0100110111 -   @X
227f2aabda8SRichard Henderson
228f2aabda8SRichard HendersonLHA             101010 ..... ..... ................     @D
229f2aabda8SRichard HendersonLHAU            101011 ..... ..... ................     @D
230f2aabda8SRichard HendersonLHAX            011111 ..... ..... ..... 0101010111 -   @X
231f2aabda8SRichard HendersonLHAXU           011111 ..... ..... ..... 0101110111 -   @X
232f2aabda8SRichard Henderson
233f2aabda8SRichard HendersonLWZ             100000 ..... ..... ................     @D
234f2aabda8SRichard HendersonLWZU            100001 ..... ..... ................     @D
235f2aabda8SRichard HendersonLWZX            011111 ..... ..... ..... 0000010111 -   @X
236f2aabda8SRichard HendersonLWZUX           011111 ..... ..... ..... 0000110111 -   @X
237f2aabda8SRichard Henderson
238f2aabda8SRichard HendersonLWA             111010 ..... ..... ..............10     @DS
239f2aabda8SRichard HendersonLWAX            011111 ..... ..... ..... 0101010101 -   @X
240f2aabda8SRichard HendersonLWAUX           011111 ..... ..... ..... 0101110101 -   @X
241f2aabda8SRichard Henderson
242f2aabda8SRichard HendersonLD              111010 ..... ..... ..............00     @DS
243f2aabda8SRichard HendersonLDU             111010 ..... ..... ..............01     @DS
244f2aabda8SRichard HendersonLDX             011111 ..... ..... ..... 0000010101 -   @X
245f2aabda8SRichard HendersonLDUX            011111 ..... ..... ..... 0000110101 -   @X
246f2aabda8SRichard Henderson
247e10271e1SMatheus FerstLQ              111000 ..... ..... ............ ----    @DQ_rtp
248e10271e1SMatheus Ferst
249e8f4c8d6SRichard Henderson### Fixed-Point Store Instructions
250e8f4c8d6SRichard Henderson
251e8f4c8d6SRichard HendersonSTB             100110 ..... ..... ................     @D
252e8f4c8d6SRichard HendersonSTBU            100111 ..... ..... ................     @D
253e8f4c8d6SRichard HendersonSTBX            011111 ..... ..... ..... 0011010111 -   @X
254e8f4c8d6SRichard HendersonSTBUX           011111 ..... ..... ..... 0011110111 -   @X
255e8f4c8d6SRichard Henderson
256e8f4c8d6SRichard HendersonSTH             101100 ..... ..... ................     @D
257e8f4c8d6SRichard HendersonSTHU            101101 ..... ..... ................     @D
258e8f4c8d6SRichard HendersonSTHX            011111 ..... ..... ..... 0110010111 -   @X
259e8f4c8d6SRichard HendersonSTHUX           011111 ..... ..... ..... 0110110111 -   @X
260e8f4c8d6SRichard Henderson
261e8f4c8d6SRichard HendersonSTW             100100 ..... ..... ................     @D
262e8f4c8d6SRichard HendersonSTWU            100101 ..... ..... ................     @D
263e8f4c8d6SRichard HendersonSTWX            011111 ..... ..... ..... 0010010111 -   @X
264e8f4c8d6SRichard HendersonSTWUX           011111 ..... ..... ..... 0010110111 -   @X
265e8f4c8d6SRichard Henderson
266e8f4c8d6SRichard HendersonSTD             111110 ..... ..... ..............00     @DS
267e8f4c8d6SRichard HendersonSTDU            111110 ..... ..... ..............01     @DS
268e8f4c8d6SRichard HendersonSTDX            011111 ..... ..... ..... 0010010101 -   @X
269e8f4c8d6SRichard HendersonSTDUX           011111 ..... ..... ..... 0010110101 -   @X
270e8f4c8d6SRichard Henderson
271e10271e1SMatheus FerstSTQ             111110 ..... ..... ..............10     @DS_rtp
272e10271e1SMatheus Ferst
2738f0a4b6aSMatheus Ferst### Fixed-Point Compare Instructions
2748f0a4b6aSMatheus Ferst
2758f0a4b6aSMatheus FerstCMP             011111 ... - . ..... ..... 0000000000 - @X_bfl
2768f0a4b6aSMatheus FerstCMPL            011111 ... - . ..... ..... 0000100000 - @X_bfl
2778f0a4b6aSMatheus FerstCMPI            001011 ... - . ..... ................   @D_bfs
2788f0a4b6aSMatheus FerstCMPLI           001010 ... - . ..... ................   @D_bfu
2798f0a4b6aSMatheus Ferst
2805e560864SRichard Henderson### Fixed-Point Arithmetic Instructions
2815e560864SRichard Henderson
2825e560864SRichard HendersonADDI            001110 ..... ..... ................     @D
2835e560864SRichard HendersonADDIS           001111 ..... ..... ................     @D
2849a14365eSMatheus Ferst
285e7a5d578SMatheus FerstADDPCIS         010011 ..... ..... .......... 00010 .   @DX
286e7a5d578SMatheus Ferst
28789ccd7dcSMatheus Ferst## Fixed-Point Logical Instructions
28889ccd7dcSMatheus Ferst
28989ccd7dcSMatheus FerstCFUGED          011111 ..... ..... ..... 0011011100 -   @X
29082be6e02SLuis PiresCNTLZDM         011111 ..... ..... ..... 0000111011 -   @X
291f356b3baSLuis PiresCNTTZDM         011111 ..... ..... ..... 1000111011 -   @X
29221ba6e58SMatheus FerstPDEPD           011111 ..... ..... ..... 0010011100 -   @X
2938bdb7606SMatheus FerstPEXTD           011111 ..... ..... ..... 0010111100 -   @X
29489ccd7dcSMatheus Ferst
295fbd2e60eSFernando Eckhardt Valle### Float-Point Load Instructions
296fbd2e60eSFernando Eckhardt Valle
297fbd2e60eSFernando Eckhardt ValleLFS             110000 ..... ..... ................     @D
298fbd2e60eSFernando Eckhardt ValleLFSU            110001 ..... ..... ................     @D
299fbd2e60eSFernando Eckhardt ValleLFSX            011111 ..... ..... ..... 1000010111 -   @X
300fbd2e60eSFernando Eckhardt ValleLFSUX           011111 ..... ..... ..... 1000110111 -   @X
301fbd2e60eSFernando Eckhardt Valle
302fbd2e60eSFernando Eckhardt ValleLFD             110010 ..... ..... ................     @D
303fbd2e60eSFernando Eckhardt ValleLFDU            110011 ..... ..... ................     @D
304fbd2e60eSFernando Eckhardt ValleLFDX            011111 ..... ..... ..... 1001010111 -   @X
305fbd2e60eSFernando Eckhardt ValleLFDUX           011111 ..... ..... ..... 1001110111 -   @X
306fbd2e60eSFernando Eckhardt Valle
307fbd2e60eSFernando Eckhardt Valle### Float-Point Store Instructions
308fbd2e60eSFernando Eckhardt Valle
309fbd2e60eSFernando Eckhardt ValleSTFS            110100 ..... ...... ...............     @D
310fbd2e60eSFernando Eckhardt ValleSTFSU           110101 ..... ...... ...............     @D
311fbd2e60eSFernando Eckhardt ValleSTFSX           011111 ..... ...... .... 1010010111 -   @X
312fbd2e60eSFernando Eckhardt ValleSTFSUX          011111 ..... ...... .... 1010110111 -   @X
313fbd2e60eSFernando Eckhardt Valle
314fbd2e60eSFernando Eckhardt ValleSTFD            110110 ..... ...... ...............     @D
315fbd2e60eSFernando Eckhardt ValleSTFDU           110111 ..... ...... ...............     @D
316fbd2e60eSFernando Eckhardt ValleSTFDX           011111 ..... ...... .... 1011010111 -   @X
317fbd2e60eSFernando Eckhardt ValleSTFDUX          011111 ..... ...... .... 1011110111 -   @X
318fbd2e60eSFernando Eckhardt Valle
319eb69a84bSMatheus Ferst### Floating-Point Select Instruction
320eb69a84bSMatheus Ferst
321eb69a84bSMatheus FerstFSEL            111111 ..... ..... ..... ..... 10111 .  @A
322eb69a84bSMatheus Ferst
3239a14365eSMatheus Ferst### Move To/From System Register Instructions
3249a14365eSMatheus Ferst
3259a14365eSMatheus FerstSETBC           011111 ..... ..... ----- 0110000000 -   @X_bi
3269a14365eSMatheus FerstSETBCR          011111 ..... ..... ----- 0110100000 -   @X_bi
3279a14365eSMatheus FerstSETNBC          011111 ..... ..... ----- 0111000000 -   @X_bi
3289a14365eSMatheus FerstSETNBCR         011111 ..... ..... ----- 0111100000 -   @X_bi
329a5f56954SMatheus Ferst
330afdc9310SLuis Pires### Decimal Floating-Point Arithmetic Instructions
331afdc9310SLuis Pires
332afdc9310SLuis PiresDADD            111011 ..... ..... ..... 0000000010 .   @X_rc
333afdc9310SLuis PiresDADDQ           111111 ..... ..... ..... 0000000010 .   @X_tp_ap_bp_rc
334afdc9310SLuis Pires
335afdc9310SLuis PiresDSUB            111011 ..... ..... ..... 1000000010 .   @X_rc
336afdc9310SLuis PiresDSUBQ           111111 ..... ..... ..... 1000000010 .   @X_tp_ap_bp_rc
337afdc9310SLuis Pires
338afdc9310SLuis PiresDMUL            111011 ..... ..... ..... 0000100010 .   @X_rc
339afdc9310SLuis PiresDMULQ           111111 ..... ..... ..... 0000100010 .   @X_tp_ap_bp_rc
340afdc9310SLuis Pires
341afdc9310SLuis PiresDDIV            111011 ..... ..... ..... 1000100010 .   @X_rc
342afdc9310SLuis PiresDDIVQ           111111 ..... ..... ..... 1000100010 .   @X_tp_ap_bp_rc
343afdc9310SLuis Pires
34485c38a46SLuis Pires### Decimal Floating-Point Compare Instructions
34585c38a46SLuis Pires
34685c38a46SLuis PiresDCMPU           111011 ... -- ..... ..... 1010000010 -  @X_bf
34785c38a46SLuis PiresDCMPUQ          111111 ... -- ..... ..... 1010000010 -  @X_bf_ap_bp
34885c38a46SLuis Pires
34985c38a46SLuis PiresDCMPO           111011 ... -- ..... ..... 0010000010 -  @X_bf
35085c38a46SLuis PiresDCMPOQ          111111 ... -- ..... ..... 0010000010 -  @X_bf_ap_bp
35185c38a46SLuis Pires
35287bc8e52SLuis Pires### Decimal Floating-Point Test Instructions
35387bc8e52SLuis Pires
35487bc8e52SLuis PiresDTSTDC          111011 ... -- ..... ...... 011000010 -  @Z22_bf_fra
35587bc8e52SLuis PiresDTSTDCQ         111111 ... -- ..... ...... 011000010 -  @Z22_bf_frap
35687bc8e52SLuis Pires
35787bc8e52SLuis PiresDTSTDG          111011 ... -- ..... ...... 011100010 -  @Z22_bf_fra
35887bc8e52SLuis PiresDTSTDGQ         111111 ... -- ..... ...... 011100010 -  @Z22_bf_frap
35987bc8e52SLuis Pires
36085c38a46SLuis PiresDTSTEX          111011 ... -- ..... ..... 0010100010 -  @X_bf
36185c38a46SLuis PiresDTSTEXQ         111111 ... -- ..... ..... 0010100010 -  @X_bf_ap_bp
36285c38a46SLuis Pires
36385c38a46SLuis PiresDTSTSF          111011 ... -- ..... ..... 1010100010 -  @X_bf
36485c38a46SLuis PiresDTSTSFQ         111111 ... -- ..... ..... 1010100010 -  @X_bf_a_bp
36585c38a46SLuis Pires
36685c38a46SLuis PiresDTSTSFI         111011 ... - ...... ..... 1010100011 -  @X_bf_uim
36785c38a46SLuis PiresDTSTSFIQ        111111 ... - ...... ..... 1010100011 -  @X_bf_uim_bp
36885c38a46SLuis Pires
36978464edbSLuis Pires### Decimal Floating-Point Quantum Adjustment Instructions
37078464edbSLuis Pires
37178464edbSLuis PiresDQUAI           111011 ..... ..... ..... .. 01000011 .  @Z23_te_tb
37278464edbSLuis PiresDQUAIQ          111111 ..... ..... ..... .. 01000011 .  @Z23_te_tbp
37378464edbSLuis Pires
374a8f4bce6SLuis PiresDQUA            111011 ..... ..... ..... .. 00000011 .  @Z23_tab
375a8f4bce6SLuis PiresDQUAQ           111111 ..... ..... ..... .. 00000011 .  @Z23_tabp
376a8f4bce6SLuis Pires
377a8f4bce6SLuis PiresDRRND           111011 ..... ..... ..... .. 00100011 .  @Z23_tab
378a8f4bce6SLuis PiresDRRNDQ          111111 ..... ..... ..... .. 00100011 .  @Z23_tp_a_bp
379a8f4bce6SLuis Pires
38078464edbSLuis PiresDRINTX          111011 ..... ---- . ..... .. 01100011 . @Z23_tb
38178464edbSLuis PiresDRINTXQ         111111 ..... ---- . ..... .. 01100011 . @Z23_tbp
38278464edbSLuis Pires
38378464edbSLuis PiresDRINTN          111011 ..... ---- . ..... .. 11100011 . @Z23_tb
38478464edbSLuis PiresDRINTNQ         111111 ..... ---- . ..... .. 11100011 . @Z23_tbp
38578464edbSLuis Pires
386d39b2cc7SLuis Pires### Decimal Floating-Point Conversion Instructions
387d39b2cc7SLuis Pires
388c8ef4d1eSLuis PiresDCTDP           111011 ..... ----- ..... 0100000010 .   @X_tb_rc
389c8ef4d1eSLuis PiresDCTQPQ          111111 ..... ----- ..... 0100000010 .   @X_tp_b_rc
390c8ef4d1eSLuis Pires
391c8ef4d1eSLuis PiresDRSP            111011 ..... ----- ..... 1100000010 .   @X_tb_rc
392c8ef4d1eSLuis PiresDRDPQ           111111 ..... ----- ..... 1100000010 .   @X_tbp_rc
393c8ef4d1eSLuis Pires
394c8ef4d1eSLuis PiresDCFFIX          111011 ..... ----- ..... 1100100010 .   @X_tb_rc
395c8ef4d1eSLuis PiresDCFFIXQ         111111 ..... ----- ..... 1100100010 .   @X_tp_b_rc
396d39b2cc7SLuis PiresDCFFIXQQ        111111 ..... 00000 ..... 1111100010 -   @X_frtp_vrb
397c8ef4d1eSLuis Pires
398c8ef4d1eSLuis PiresDCTFIX          111011 ..... ----- ..... 0100100010 .   @X_tb_rc
399c8ef4d1eSLuis PiresDCTFIXQ         111111 ..... ----- ..... 0100100010 .   @X_t_bp_rc
400328747f3SLuis PiresDCTFIXQQ        111111 ..... 00001 ..... 1111100010 -   @X_vrt_frbp
401d39b2cc7SLuis Pires
402afdc9310SLuis Pires### Decimal Floating-Point Format Instructions
403afdc9310SLuis Pires
404a2329747SLuis PiresDDEDPD          111011 ..... .. --- ..... 0101000010 .  @X_tb_sp_rc
405a2329747SLuis PiresDDEDPDQ         111111 ..... .. --- ..... 0101000010 .  @X_tbp_sp_rc
406a2329747SLuis Pires
407a2329747SLuis PiresDENBCD          111011 ..... . ---- ..... 1101000010 .  @X_tb_s_rc
408a2329747SLuis PiresDENBCDQ         111111 ..... . ---- ..... 1101000010 .  @X_tbp_s_rc
409a2329747SLuis Pires
410c8ef4d1eSLuis PiresDXEX            111011 ..... ----- ..... 0101100010 .   @X_tb_rc
411c8ef4d1eSLuis PiresDXEXQ           111111 ..... ----- ..... 0101100010 .   @X_t_bp_rc
412c8ef4d1eSLuis Pires
413afdc9310SLuis PiresDIEX            111011 ..... ..... ..... 1101100010 .   @X_rc
414afdc9310SLuis PiresDIEXQ           111111 ..... ..... ..... 1101100010 .   @X_tp_a_bp_rc
415afdc9310SLuis Pires
416a2329747SLuis PiresDSCLI           111011 ..... ..... ...... 001000010 .   @Z22_ta_sh_rc
417a2329747SLuis PiresDSCLIQ          111111 ..... ..... ...... 001000010 .   @Z22_tap_sh_rc
418a2329747SLuis Pires
419a2329747SLuis PiresDSCRI           111011 ..... ..... ...... 001100010 .   @Z22_ta_sh_rc
420a2329747SLuis PiresDSCRIQ          111111 ..... ..... ...... 001100010 .   @Z22_tap_sh_rc
421a2329747SLuis Pires
4226a394290SMatheus Ferst## Vector Integer Instructions
4236a394290SMatheus Ferst
4246a394290SMatheus FerstVCMPEQUB        000100 ..... ..... ..... . 0000000110   @VC
4256a394290SMatheus FerstVCMPEQUH        000100 ..... ..... ..... . 0001000110   @VC
4266a394290SMatheus FerstVCMPEQUW        000100 ..... ..... ..... . 0010000110   @VC
4276a394290SMatheus FerstVCMPEQUD        000100 ..... ..... ..... . 0011000111   @VC
4287b3da08eSMatheus FerstVCMPEQUQ        000100 ..... ..... ..... . 0111000111   @VC
4296a394290SMatheus Ferst
4306a394290SMatheus FerstVCMPGTSB        000100 ..... ..... ..... . 1100000110   @VC
4316a394290SMatheus FerstVCMPGTSH        000100 ..... ..... ..... . 1101000110   @VC
4326a394290SMatheus FerstVCMPGTSW        000100 ..... ..... ..... . 1110000110   @VC
4336a394290SMatheus FerstVCMPGTSD        000100 ..... ..... ..... . 1111000111   @VC
43450449ae4SMatheus FerstVCMPGTSQ        000100 ..... ..... ..... . 1110000111   @VC
4356a394290SMatheus Ferst
4366a394290SMatheus FerstVCMPGTUB        000100 ..... ..... ..... . 1000000110   @VC
4376a394290SMatheus FerstVCMPGTUH        000100 ..... ..... ..... . 1001000110   @VC
4386a394290SMatheus FerstVCMPGTUW        000100 ..... ..... ..... . 1010000110   @VC
4396a394290SMatheus FerstVCMPGTUD        000100 ..... ..... ..... . 1011000111   @VC
44050449ae4SMatheus FerstVCMPGTUQ        000100 ..... ..... ..... . 1010000111   @VC
4416a394290SMatheus Ferst
4426a394290SMatheus FerstVCMPNEB         000100 ..... ..... ..... . 0000000111   @VC
4436a394290SMatheus FerstVCMPNEH         000100 ..... ..... ..... . 0001000111   @VC
4446a394290SMatheus FerstVCMPNEW         000100 ..... ..... ..... . 0010000111   @VC
4456a394290SMatheus Ferst
446eb936dc0SMatheus FerstVCMPNEZB        000100 ..... ..... ..... . 0100000111   @VC
447eb936dc0SMatheus FerstVCMPNEZH        000100 ..... ..... ..... . 0101000111   @VC
448eb936dc0SMatheus FerstVCMPNEZW        000100 ..... ..... ..... . 0110000111   @VC
449eb936dc0SMatheus Ferst
450b58f3931SMatheus FerstVCMPSQ          000100 ... -- ..... ..... 00101000001   @VX_bf
451b58f3931SMatheus FerstVCMPUQ          000100 ... -- ..... ..... 00100000001   @VX_bf
452b58f3931SMatheus Ferst
453a5f56954SMatheus Ferst## Vector Bit Manipulation Instruction
454a5f56954SMatheus Ferst
455f622ebe7SMatheus FerstVGNB            000100 ..... -- ... ..... 10011001100   @VX_n
456f622ebe7SMatheus Ferst
457a5f56954SMatheus FerstVCFUGED         000100 ..... ..... ..... 10101001101    @VX
458a2c975e1SMatheus FerstVCLZDM          000100 ..... ..... ..... 11110000100    @VX
459a2c975e1SMatheus FerstVCTZDM          000100 ..... ..... ..... 11111000100    @VX
46000a16569SMatheus FerstVPDEPD          000100 ..... ..... ..... 10111001101    @VX
46100a16569SMatheus FerstVPEXTD          000100 ..... ..... ..... 10110001101    @VX
4622c716b4dSMatheus Ferst
4632c716b4dSMatheus Ferst## Vector Permute and Formatting Instruction
4642c716b4dSMatheus Ferst
46528110b72SMatheus FerstVEXTDUBVLX      000100 ..... ..... ..... ..... 011000   @VA
46628110b72SMatheus FerstVEXTDUBVRX      000100 ..... ..... ..... ..... 011001   @VA
46728110b72SMatheus FerstVEXTDUHVLX      000100 ..... ..... ..... ..... 011010   @VA
46828110b72SMatheus FerstVEXTDUHVRX      000100 ..... ..... ..... ..... 011011   @VA
46928110b72SMatheus FerstVEXTDUWVLX      000100 ..... ..... ..... ..... 011100   @VA
47028110b72SMatheus FerstVEXTDUWVRX      000100 ..... ..... ..... ..... 011101   @VA
47128110b72SMatheus FerstVEXTDDVLX       000100 ..... ..... ..... ..... 011110   @VA
47228110b72SMatheus FerstVEXTDDVRX       000100 ..... ..... ..... ..... 011111   @VA
47328110b72SMatheus Ferst
474b422c2cbSMatheus FerstVINSERTB        000100 ..... - .... ..... 01100001101   @VX_uim4
475b422c2cbSMatheus FerstVINSERTH        000100 ..... - .... ..... 01101001101   @VX_uim4
476b422c2cbSMatheus FerstVINSERTW        000100 ..... - .... ..... 01110001101   @VX_uim4
477b422c2cbSMatheus FerstVINSERTD        000100 ..... - .... ..... 01111001101   @VX_uim4
478b422c2cbSMatheus Ferst
4792cc12af3SMatheus FerstVINSBLX         000100 ..... ..... ..... 01000001111    @VX
4802cc12af3SMatheus FerstVINSBRX         000100 ..... ..... ..... 01100001111    @VX
4812cc12af3SMatheus FerstVINSHLX         000100 ..... ..... ..... 01001001111    @VX
4822cc12af3SMatheus FerstVINSHRX         000100 ..... ..... ..... 01101001111    @VX
4832cc12af3SMatheus FerstVINSWLX         000100 ..... ..... ..... 01010001111    @VX
4842cc12af3SMatheus FerstVINSWRX         000100 ..... ..... ..... 01110001111    @VX
4852cc12af3SMatheus FerstVINSDLX         000100 ..... ..... ..... 01011001111    @VX
4862cc12af3SMatheus FerstVINSDRX         000100 ..... ..... ..... 01111001111    @VX
4872cc12af3SMatheus Ferst
48823832ae6SMatheus FerstVINSW           000100 ..... - .... ..... 00011001111   @VX_uim4
48923832ae6SMatheus FerstVINSD           000100 ..... - .... ..... 00111001111   @VX_uim4
49023832ae6SMatheus Ferst
4912c9f7958SMatheus FerstVINSBVLX        000100 ..... ..... ..... 00000001111    @VX
4922c9f7958SMatheus FerstVINSBVRX        000100 ..... ..... ..... 00100001111    @VX
4932c9f7958SMatheus FerstVINSHVLX        000100 ..... ..... ..... 00001001111    @VX
4942c9f7958SMatheus FerstVINSHVRX        000100 ..... ..... ..... 00101001111    @VX
4952c9f7958SMatheus FerstVINSWVLX        000100 ..... ..... ..... 00010001111    @VX
4962c9f7958SMatheus FerstVINSWVRX        000100 ..... ..... ..... 00110001111    @VX
4972c9f7958SMatheus Ferst
4982c716b4dSMatheus FerstVSLDBI          000100 ..... ..... ..... 00 ... 010110  @VN
4992c716b4dSMatheus FerstVSRDBI          000100 ..... ..... ..... 01 ... 010110  @VN
50072b70d5cSLucas Mateus Castro (alqotel)
50128347fe2SMatheus FerstVPERM           000100 ..... ..... ..... ..... 101011   @VA
50228347fe2SMatheus FerstVPERMR          000100 ..... ..... ..... ..... 111011   @VA
50328347fe2SMatheus Ferst
50428347fe2SMatheus FerstVSEL            000100 ..... ..... ..... ..... 101010   @VA
50528347fe2SMatheus Ferst
5060f052007SMatheus Ferst## Vector Integer Shift Instruction
5070f052007SMatheus Ferst
5080f052007SMatheus FerstVSLB            000100 ..... ..... ..... 00100000100    @VX
5090f052007SMatheus FerstVSLH            000100 ..... ..... ..... 00101000100    @VX
5100f052007SMatheus FerstVSLW            000100 ..... ..... ..... 00110000100    @VX
5110f052007SMatheus FerstVSLD            000100 ..... ..... ..... 10111000100    @VX
5123e39edb6SMatheus FerstVSLQ            000100 ..... ..... ..... 00100000101    @VX
5130f052007SMatheus Ferst
5140f052007SMatheus FerstVSRB            000100 ..... ..... ..... 01000000100    @VX
5150f052007SMatheus FerstVSRH            000100 ..... ..... ..... 01001000100    @VX
5160f052007SMatheus FerstVSRW            000100 ..... ..... ..... 01010000100    @VX
5170f052007SMatheus FerstVSRD            000100 ..... ..... ..... 11011000100    @VX
518946c3491SMatheus FerstVSRQ            000100 ..... ..... ..... 01000000101    @VX
5190f052007SMatheus Ferst
5200f052007SMatheus FerstVSRAB           000100 ..... ..... ..... 01100000100    @VX
5210f052007SMatheus FerstVSRAH           000100 ..... ..... ..... 01101000100    @VX
5220f052007SMatheus FerstVSRAW           000100 ..... ..... ..... 01110000100    @VX
5230f052007SMatheus FerstVSRAD           000100 ..... ..... ..... 01111000100    @VX
52485085bbcSMatheus FerstVSRAQ           000100 ..... ..... ..... 01100000101    @VX
5250f052007SMatheus Ferst
526df489ad6SMatheus FerstVRLB            000100 ..... ..... ..... 00000000100    @VX
527df489ad6SMatheus FerstVRLH            000100 ..... ..... ..... 00001000100    @VX
528df489ad6SMatheus FerstVRLW            000100 ..... ..... ..... 00010000100    @VX
529df489ad6SMatheus FerstVRLD            000100 ..... ..... ..... 00011000100    @VX
530aa0f34ecSMatheus FerstVRLQ            000100 ..... ..... ..... 00000000101    @VX
531df489ad6SMatheus Ferst
53202c74f0eSMatheus FerstVRLWMI          000100 ..... ..... ..... 00010000101    @VX
53302c74f0eSMatheus FerstVRLDMI          000100 ..... ..... ..... 00011000101    @VX
5347e5947dfSMatheus FerstVRLQMI          000100 ..... ..... ..... 00001000101    @VX
53502c74f0eSMatheus Ferst
53602c74f0eSMatheus FerstVRLWNM          000100 ..... ..... ..... 00110000101    @VX
53702c74f0eSMatheus FerstVRLDNM          000100 ..... ..... ..... 00111000101    @VX
5384e272668SMatheus FerstVRLQNM          000100 ..... ..... ..... 00101000101    @VX
53902c74f0eSMatheus Ferst
5409bfe9213SLucas Coutinho## Vector Integer Arithmetic Instructions
5419bfe9213SLucas Coutinho
5429bfe9213SLucas CoutinhoVEXTSB2W        000100 ..... 10000 ..... 11000000010    @VX_tb
5439bfe9213SLucas CoutinhoVEXTSH2W        000100 ..... 10001 ..... 11000000010    @VX_tb
5449bfe9213SLucas CoutinhoVEXTSB2D        000100 ..... 11000 ..... 11000000010    @VX_tb
5459bfe9213SLucas CoutinhoVEXTSH2D        000100 ..... 11001 ..... 11000000010    @VX_tb
5469bfe9213SLucas CoutinhoVEXTSW2D        000100 ..... 11010 ..... 11000000010    @VX_tb
547acf43b34SLucas CoutinhoVEXTSD2Q        000100 ..... 11011 ..... 11000000010    @VX_tb
5489bfe9213SLucas Coutinho
5495f1470b0SMatheus Ferst## Vector Mask Manipulation Instructions
5505f1470b0SMatheus Ferst
5519193eaa9SMatheus FerstMTVSRBM         000100 ..... 10000 ..... 11001000010    @VX_tb
5529193eaa9SMatheus FerstMTVSRHM         000100 ..... 10001 ..... 11001000010    @VX_tb
5539193eaa9SMatheus FerstMTVSRWM         000100 ..... 10010 ..... 11001000010    @VX_tb
5549193eaa9SMatheus FerstMTVSRDM         000100 ..... 10011 ..... 11001000010    @VX_tb
5559193eaa9SMatheus FerstMTVSRQM         000100 ..... 10100 ..... 11001000010    @VX_tb
5569193eaa9SMatheus FerstMTVSRBMI        000100 ..... ..... .......... 01010 .   @DX_b
5579193eaa9SMatheus Ferst
5585f1470b0SMatheus FerstVEXPANDBM       000100 ..... 00000 ..... 11001000010    @VX_tb
5595f1470b0SMatheus FerstVEXPANDHM       000100 ..... 00001 ..... 11001000010    @VX_tb
5605f1470b0SMatheus FerstVEXPANDWM       000100 ..... 00010 ..... 11001000010    @VX_tb
5615f1470b0SMatheus FerstVEXPANDDM       000100 ..... 00011 ..... 11001000010    @VX_tb
5625f1470b0SMatheus FerstVEXPANDQM       000100 ..... 00100 ..... 11001000010    @VX_tb
5635f1470b0SMatheus Ferst
56417868d81SMatheus FerstVEXTRACTBM      000100 ..... 01000 ..... 11001000010    @VX_tb
56517868d81SMatheus FerstVEXTRACTHM      000100 ..... 01001 ..... 11001000010    @VX_tb
56617868d81SMatheus FerstVEXTRACTWM      000100 ..... 01010 ..... 11001000010    @VX_tb
56717868d81SMatheus FerstVEXTRACTDM      000100 ..... 01011 ..... 11001000010    @VX_tb
56817868d81SMatheus FerstVEXTRACTQM      000100 ..... 01100 ..... 11001000010    @VX_tb
56917868d81SMatheus Ferst
57095f1ee28SMatheus FerstVCNTMBB         000100 ..... 1100 . ..... 11001000010   @VX_mp
57195f1ee28SMatheus FerstVCNTMBH         000100 ..... 1101 . ..... 11001000010   @VX_mp
57295f1ee28SMatheus FerstVCNTMBW         000100 ..... 1110 . ..... 11001000010   @VX_mp
57395f1ee28SMatheus FerstVCNTMBD         000100 ..... 1111 . ..... 11001000010   @VX_mp
57495f1ee28SMatheus Ferst
57580eca687SLucas Mateus Castro (alqotel)## Vector Multiply Instruction
57680eca687SLucas Mateus Castro (alqotel)
57780eca687SLucas Mateus Castro (alqotel)VMULESB         000100 ..... ..... ..... 01100001000    @VX
57880eca687SLucas Mateus Castro (alqotel)VMULOSB         000100 ..... ..... ..... 00100001000    @VX
57980eca687SLucas Mateus Castro (alqotel)VMULEUB         000100 ..... ..... ..... 01000001000    @VX
58080eca687SLucas Mateus Castro (alqotel)VMULOUB         000100 ..... ..... ..... 00000001000    @VX
58180eca687SLucas Mateus Castro (alqotel)
58280eca687SLucas Mateus Castro (alqotel)VMULESH         000100 ..... ..... ..... 01101001000    @VX
58380eca687SLucas Mateus Castro (alqotel)VMULOSH         000100 ..... ..... ..... 00101001000    @VX
58480eca687SLucas Mateus Castro (alqotel)VMULEUH         000100 ..... ..... ..... 01001001000    @VX
58580eca687SLucas Mateus Castro (alqotel)VMULOUH         000100 ..... ..... ..... 00001001000    @VX
58680eca687SLucas Mateus Castro (alqotel)
58780eca687SLucas Mateus Castro (alqotel)VMULESW         000100 ..... ..... ..... 01110001000    @VX
58880eca687SLucas Mateus Castro (alqotel)VMULOSW         000100 ..... ..... ..... 00110001000    @VX
58980eca687SLucas Mateus Castro (alqotel)VMULEUW         000100 ..... ..... ..... 01010001000    @VX
59080eca687SLucas Mateus Castro (alqotel)VMULOUW         000100 ..... ..... ..... 00010001000    @VX
59180eca687SLucas Mateus Castro (alqotel)
59280eca687SLucas Mateus Castro (alqotel)VMULESD         000100 ..... ..... ..... 01111001000    @VX
59380eca687SLucas Mateus Castro (alqotel)VMULOSD         000100 ..... ..... ..... 00111001000    @VX
59480eca687SLucas Mateus Castro (alqotel)VMULEUD         000100 ..... ..... ..... 01011001000    @VX
59580eca687SLucas Mateus Castro (alqotel)VMULOUD         000100 ..... ..... ..... 00011001000    @VX
59680eca687SLucas Mateus Castro (alqotel)
597d45da014SLucas Mateus Castro (alqotel)VMULHSW         000100 ..... ..... ..... 01110001001    @VX
598d45da014SLucas Mateus Castro (alqotel)VMULHUW         000100 ..... ..... ..... 01010001001    @VX
599d45da014SLucas Mateus Castro (alqotel)VMULHSD         000100 ..... ..... ..... 01111001001    @VX
600d45da014SLucas Mateus Castro (alqotel)VMULHUD         000100 ..... ..... ..... 01011001001    @VX
601d45da014SLucas Mateus Castro (alqotel)VMULLD          000100 ..... ..... ..... 00111001001    @VX
602d45da014SLucas Mateus Castro (alqotel)
6035476ef1dSVíctor Colombo## Vector Multiply-Sum Instructions
6045476ef1dSVíctor Colombo
605b2dc03a5SMatheus FerstVMSUMUBM        000100 ..... ..... ..... ..... 100100   @VA
606b2dc03a5SMatheus FerstVMSUMMBM        000100 ..... ..... ..... ..... 100101   @VA
6076f52f731SMatheus FerstVMSUMSHM        000100 ..... ..... ..... ..... 101000   @VA
6086f52f731SMatheus FerstVMSUMSHS        000100 ..... ..... ..... ..... 101001   @VA
60989a5a1aeSMatheus FerstVMSUMUHM        000100 ..... ..... ..... ..... 100110   @VA
61089a5a1aeSMatheus FerstVMSUMUHS        000100 ..... ..... ..... ..... 100111   @VA
611b2dc03a5SMatheus Ferst
6125476ef1dSVíctor ColomboVMSUMCUD        000100 ..... ..... ..... ..... 010111   @VA
613536f9876SVíctor ColomboVMSUMUDM        000100 ..... ..... ..... ..... 100011   @VA
6145476ef1dSVíctor Colombo
615fb5303ccSMatheus Ferst## Vector String Instructions
616fb5303ccSMatheus Ferst
617fb5303ccSMatheus FerstVSTRIBL         000100 ..... 00000 ..... . 0000001101   @VX_tb_rc
618fb5303ccSMatheus FerstVSTRIBR         000100 ..... 00001 ..... . 0000001101   @VX_tb_rc
619fb5303ccSMatheus FerstVSTRIHL         000100 ..... 00010 ..... . 0000001101   @VX_tb_rc
620fb5303ccSMatheus FerstVSTRIHR         000100 ..... 00011 ..... . 0000001101   @VX_tb_rc
621fb5303ccSMatheus Ferst
62208d512e1SMatheus FerstVCLRLB          000100 ..... ..... ..... 00110001101    @VX
623fb1b5675SMatheus FerstVCLRRB          000100 ..... ..... ..... 00111001101    @VX
62408d512e1SMatheus Ferst
62572b70d5cSLucas Mateus Castro (alqotel)# VSX Load/Store Instructions
62672b70d5cSLucas Mateus Castro (alqotel)
6277eec8cbbSLeandro LuporiLXSD            111001 ..... ..... .............. 10    @DS
6287eec8cbbSLeandro LuporiSTXSD           111101 ..... ..... .............. 10    @DS
62920e2d04eSLeandro LuporiLXSSP           111001 ..... ..... .............. 11    @DS
63020e2d04eSLeandro LuporiSTXSSP          111101 ..... ..... .............. 11    @DS
63172b70d5cSLucas Mateus Castro (alqotel)LXV             111101 ..... ..... ............ . 001   @DQ_TSX
63272b70d5cSLucas Mateus Castro (alqotel)STXV            111101 ..... ..... ............ . 101   @DQ_TSX
63396fa2632SLucas Mateus Castro (alqotel)LXVP            000110 ..... ..... ............ 0000    @DQ_TSXP
63496fa2632SLucas Mateus Castro (alqotel)STXVP           000110 ..... ..... ............ 0001    @DQ_TSXP
63570426b5bSLucas Mateus Castro (alqotel)LXVX            011111 ..... ..... ..... 0100 - 01100 . @X_TSX
63670426b5bSLucas Mateus Castro (alqotel)STXVX           011111 ..... ..... ..... 0110001100 .   @X_TSX
637226ce506SLucas Mateus Castro (alqotel)LXVPX           011111 ..... ..... ..... 0101001101 -   @X_TSXP
638226ce506SLucas Mateus Castro (alqotel)STXVPX          011111 ..... ..... ..... 0111001101 -   @X_TSXP
639604d00c7SLucas CoutinhoLXVRBX          011111 ..... ..... ..... 0000001101 .   @X_TSX
640604d00c7SLucas CoutinhoLXVRHX          011111 ..... ..... ..... 0000101101 .   @X_TSX
641604d00c7SLucas CoutinhoLXVRWX          011111 ..... ..... ..... 0001001101 .   @X_TSX
642604d00c7SLucas CoutinhoLXVRDX          011111 ..... ..... ..... 0001101101 .   @X_TSX
643604d00c7SLucas CoutinhoSTXVRBX         011111 ..... ..... ..... 0010001101 .   @X_TSX
644604d00c7SLucas CoutinhoSTXVRHX         011111 ..... ..... ..... 0010101101 .   @X_TSX
645604d00c7SLucas CoutinhoSTXVRWX         011111 ..... ..... ..... 0011001101 .   @X_TSX
646604d00c7SLucas CoutinhoSTXVRDX         011111 ..... ..... ..... 0011101101 .   @X_TSX
64730dfca8dSBruno Larsen (billionai)
648e4318ab2SMatheus Ferst## VSX Scalar Multiply-Add Instructions
649e4318ab2SMatheus Ferst
650e4318ab2SMatheus FerstXSMADDADP       111100 ..... ..... ..... 00100001 . . . @XX3
651e4318ab2SMatheus FerstXSMADDMDP       111100 ..... ..... ..... 00101001 . . . @XX3
652e4318ab2SMatheus FerstXSMADDASP       111100 ..... ..... ..... 00000001 . . . @XX3
653e4318ab2SMatheus FerstXSMADDMSP       111100 ..... ..... ..... 00001001 . . . @XX3
6543bb1aed2SMatheus FerstXSMADDQP        111111 ..... ..... ..... 0110000100 .   @X_rc
655e4318ab2SMatheus Ferst
656e4318ab2SMatheus FerstXSMSUBADP       111100 ..... ..... ..... 00110001 . . . @XX3
657e4318ab2SMatheus FerstXSMSUBMDP       111100 ..... ..... ..... 00111001 . . . @XX3
658e4318ab2SMatheus FerstXSMSUBASP       111100 ..... ..... ..... 00010001 . . . @XX3
659e4318ab2SMatheus FerstXSMSUBMSP       111100 ..... ..... ..... 00011001 . . . @XX3
6603bb1aed2SMatheus FerstXSMSUBQP        111111 ..... ..... ..... 0110100100 .   @X_rc
661e4318ab2SMatheus Ferst
662e4318ab2SMatheus FerstXSNMADDASP      111100 ..... ..... ..... 10000001 . . . @XX3
663e4318ab2SMatheus FerstXSNMADDMSP      111100 ..... ..... ..... 10001001 . . . @XX3
664e4318ab2SMatheus FerstXSNMADDADP      111100 ..... ..... ..... 10100001 . . . @XX3
665e4318ab2SMatheus FerstXSNMADDMDP      111100 ..... ..... ..... 10101001 . . . @XX3
6663bb1aed2SMatheus FerstXSNMADDQP       111111 ..... ..... ..... 0111000100 .   @X_rc
667e4318ab2SMatheus Ferst
668e4318ab2SMatheus FerstXSNMSUBASP      111100 ..... ..... ..... 10010001 . . . @XX3
669e4318ab2SMatheus FerstXSNMSUBMSP      111100 ..... ..... ..... 10011001 . . . @XX3
670e4318ab2SMatheus FerstXSNMSUBADP      111100 ..... ..... ..... 10110001 . . . @XX3
671e4318ab2SMatheus FerstXSNMSUBMDP      111100 ..... ..... ..... 10111001 . . . @XX3
6723bb1aed2SMatheus FerstXSNMSUBQP       111111 ..... ..... ..... 0111100100 .   @X_rc
673e4318ab2SMatheus Ferst
67430dfca8dSBruno Larsen (billionai)## VSX splat instruction
67530dfca8dSBruno Larsen (billionai)
6766166fcedSBruno Larsen (billionai)XXSPLTIB        111100 ..... 00 ........ 0101101000 .   @X_imm8
6773909ff1fSVíctor ColomboXXSPLTW         111100 ..... ---.. ..... 010100100 . .  @XX2_uim2
6786e26b85dSMatheus Ferst
6796a94bf19SMatheus Ferst## VSX Permute Instructions
6806a94bf19SMatheus Ferst
6818f5eeee3SMatheus FerstXXEXTRACTUW     111100 ..... - .... ..... 010100101 ..  @XX2_uim4
6828f5eeee3SMatheus FerstXXINSERTW       111100 ..... - .... ..... 010110101 ..  @XX2_uim4
6838f5eeee3SMatheus Ferst
6846a94bf19SMatheus FerstXXPERM          111100 ..... ..... ..... 00011010 ...   @XX3
6856a94bf19SMatheus FerstXXPERMR         111100 ..... ..... ..... 00111010 ...   @XX3
686d31b2c19SMatheus FerstXXPERMDI        111100 ..... ..... ..... 0 .. 01010 ... @XX3_dm
6876a94bf19SMatheus Ferst
68843d55fc2SMatheus FerstXXSEL           111100 ..... ..... ..... ..... 11 ....  @XX4
68943d55fc2SMatheus Ferst
690b090f4f1SMatheus Ferst## VSX Vector Generate PCV
691b090f4f1SMatheus Ferst
692b090f4f1SMatheus FerstXXGENPCVBM      111100 ..... ..... ..... 1110010100 .   @X_imm5
693b090f4f1SMatheus FerstXXGENPCVHM      111100 ..... ..... ..... 1110010101 .   @X_imm5
694b090f4f1SMatheus FerstXXGENPCVWM      111100 ..... ..... ..... 1110110100 .   @X_imm5
695b090f4f1SMatheus FerstXXGENPCVDM      111100 ..... ..... ..... 1110110101 .   @X_imm5
696b090f4f1SMatheus Ferst
6976e26b85dSMatheus Ferst## VSX Vector Load Special Value Instruction
6986e26b85dSMatheus Ferst
6996e26b85dSMatheus FerstLXVKQ           111100 ..... 11111 ..... 0101101000 .   @X_uim5
700c5df1898SVictor Colombo
701c5df1898SVictor Colombo## VSX Comparison Instructions
702c5df1898SVictor Colombo
703c5df1898SVictor ColomboXSMAXCDP        111100 ..... ..... ..... 10000000 ...   @XX3
704c5df1898SVictor ColomboXSMINCDP        111100 ..... ..... ..... 10001000 ...   @XX3
705c5df1898SVictor ColomboXSMAXJDP        111100 ..... ..... ..... 10010000 ...   @XX3
706c5df1898SVictor ColomboXSMINJDP        111100 ..... ..... ..... 10011000 ...   @XX3
7077b8d6e3eSVíctor ColomboXSMAXCQP        111111 ..... ..... ..... 1010100100 -   @X
7087b8d6e3eSVíctor ColomboXSMINCQP        111111 ..... ..... ..... 1011100100 -   @X
7097b8d6e3eSVíctor Colombo
71072d24354SVíctor ColomboXSCMPEQDP       111100 ..... ..... ..... 00000011 ...   @XX3
71172d24354SVíctor ColomboXSCMPGEDP       111100 ..... ..... ..... 00010011 ...   @XX3
71272d24354SVíctor ColomboXSCMPGTDP       111100 ..... ..... ..... 00001011 ...   @XX3
713568e7c4dSVíctor ColomboXSCMPEQQP       111111 ..... ..... ..... 0001000100 -   @X
714568e7c4dSVíctor ColomboXSCMPGEQP       111111 ..... ..... ..... 0011000100 -   @X
715568e7c4dSVíctor ColomboXSCMPGTQP       111111 ..... ..... ..... 0011100100 -   @X
716caf6f9b5SMatheus Ferst
717caf6f9b5SMatheus Ferst## VSX Binary Floating-Point Convert Instructions
718caf6f9b5SMatheus Ferst
719caf6f9b5SMatheus FerstXSCVQPDP        111111 ..... 10100 ..... 1101000100 .   @X_tb_rc
720b3d45205SMatheus FerstXSCVQPUQZ       111111 ..... 00000 ..... 1101000100 -   @X_tb
721b3d45205SMatheus FerstXSCVQPSQZ       111111 ..... 01000 ..... 1101000100 -   @X_tb
72267332e07SMatheus FerstXSCVUQQP        111111 ..... 00011 ..... 1101000100 -   @X_tb
72367332e07SMatheus FerstXSCVSQQP        111111 ..... 01011 ..... 1101000100 -   @X_tb
7243909ff1fSVíctor ColomboXVCVBF16SPN     111100 ..... 10000 ..... 111011011 ..   @XX2
7253909ff1fSVíctor ColomboXVCVSPBF16      111100 ..... 10001 ..... 111011011 ..   @XX2
726cf862beeSMatheus FerstXSCVSPDPN       111100 ..... ----- ..... 101001011 ..   @XX2
7271f26c751SDaniel Henrique Barboza
728c36ab970SMatheus Ferst## VSX Binary Floating-Point Math Support Instructions
729c36ab970SMatheus Ferst
730c36ab970SMatheus FerstXVXSIGSP        111100 ..... 01001 ..... 111011011 ..   @XX2
731c36ab970SMatheus Ferst
732d518239bSVíctor Colombo## VSX Vector Test Least-Significant Bit by Byte Instruction
733d518239bSVíctor Colombo
734d518239bSVíctor ColomboXVTLSBB         111100 ... -- 00010 ..... 111011011 . - @XX2_bf_xb
735d518239bSVíctor Colombo
7361f26c751SDaniel Henrique Barboza### rfebb
7371f26c751SDaniel Henrique Barboza&XL_s           s:uint8_t
7381f26c751SDaniel Henrique Barboza@XL_s           ......-------------- s:1 .......... -   &XL_s
7391f26c751SDaniel Henrique BarbozaRFEBB           010011-------------- .   0010010010 -   @XL_s
740a702c533SLucas Mateus Castro (alqotel)
741a702c533SLucas Mateus Castro (alqotel)## Accumulator Instructions
742a702c533SLucas Mateus Castro (alqotel)
743a702c533SLucas Mateus Castro (alqotel)XXMFACC         011111 ... -- 00000 ----- 0010110001 -   @X_a
744a702c533SLucas Mateus Castro (alqotel)XXMTACC         011111 ... -- 00001 ----- 0010110001 -   @X_a
745a702c533SLucas Mateus Castro (alqotel)XXSETACCZ       011111 ... -- 00011 ----- 0010110001 -   @X_a
746