xref: /qemu/target/ppc/insn32.decode (revision a9bd40d9)
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
236a8654d6SVíctor Colombo&A_tb           frt frb rc:bool
246a8654d6SVíctor Colombo@A_tb           ...... frt:5 ..... frb:5 ..... ..... rc:1       &A_tb
256a8654d6SVíctor Colombo
265e560864SRichard Henderson&D              rt ra si:int64_t
275e560864SRichard Henderson@D              ...... rt:5 ra:5 si:s16                         &D
285e560864SRichard Henderson
298f0a4b6aSMatheus Ferst&D_bf           bf l:bool ra imm
30bbecdb22SVíctor Colombo@D_bfs          ...... bf:3 . l:1 ra:5 imm:s16                  &D_bf
31bbecdb22SVíctor Colombo@D_bfu          ...... bf:3 . l:1 ra:5 imm:16                   &D_bf
328f0a4b6aSMatheus Ferst
33e10271e1SMatheus Ferst%dq_si          4:s12  !function=times_16
34e10271e1SMatheus Ferst%dq_rtp         22:4   !function=times_2
35e10271e1SMatheus Ferst@DQ_rtp         ...... ....0 ra:5 ............ ....             &D rt=%dq_rtp si=%dq_si
36e10271e1SMatheus Ferst
3772b70d5cSLucas Mateus Castro (alqotel)%dq_rt_tsx      3:1 21:5
3872b70d5cSLucas Mateus Castro (alqotel)@DQ_TSX         ...... ..... ra:5 ............ ....             &D si=%dq_si rt=%dq_rt_tsx
3972b70d5cSLucas Mateus Castro (alqotel)
4096fa2632SLucas Mateus Castro (alqotel)%rt_tsxp        21:1 22:4 !function=times_2
4196fa2632SLucas Mateus Castro (alqotel)@DQ_TSXP        ...... ..... ra:5 ............ ....             &D si=%dq_si rt=%rt_tsxp
4296fa2632SLucas Mateus Castro (alqotel)
43f2aabda8SRichard Henderson%ds_si          2:s14  !function=times_4
44f2aabda8SRichard Henderson@DS             ...... rt:5 ra:5 .............. ..              &D si=%ds_si
45f2aabda8SRichard Henderson
46e10271e1SMatheus Ferst%ds_rtp         22:4   !function=times_2
47e10271e1SMatheus Ferst@DS_rtp         ...... ....0 ra:5 .............. ..             &D rt=%ds_rtp si=%ds_si
48e10271e1SMatheus Ferst
499193eaa9SMatheus Ferst&DX_b           vrt b
509193eaa9SMatheus Ferst%dx_b           6:10 16:5 0:1
519193eaa9SMatheus Ferst@DX_b           ...... vrt:5  ..... .......... ..... .          &DX_b b=%dx_b
529193eaa9SMatheus Ferst
53e7a5d578SMatheus Ferst&DX             rt d
54e7a5d578SMatheus Ferst%dx_d           6:s10 16:5 0:1
55e7a5d578SMatheus Ferst@DX             ...... rt:5  ..... .......... ..... .           &DX d=%dx_d
56e7a5d578SMatheus Ferst
5728110b72SMatheus Ferst&VA             vrt vra vrb rc
5828110b72SMatheus Ferst@VA             ...... vrt:5 vra:5 vrb:5 rc:5 ......            &VA
5928110b72SMatheus Ferst
606a394290SMatheus Ferst&VC             vrt vra vrb rc:bool
616a394290SMatheus Ferst@VC             ...... vrt:5 vra:5 vrb:5 rc:1 ..........        &VC
626a394290SMatheus Ferst
632c716b4dSMatheus Ferst&VN             vrt vra vrb sh
642c716b4dSMatheus Ferst@VN             ...... vrt:5 vra:5 vrb:5 .. sh:3 ......         &VN
652c716b4dSMatheus Ferst
66a5f56954SMatheus Ferst&VX             vrt vra vrb
67a5f56954SMatheus Ferst@VX             ...... vrt:5 vra:5 vrb:5 .......... .           &VX
68a5f56954SMatheus Ferst
69b58f3931SMatheus Ferst&VX_bf          bf vra vrb
70b58f3931SMatheus Ferst@VX_bf          ...... bf:3 .. vra:5 vrb:5 ...........          &VX_bf
71b58f3931SMatheus Ferst
7295f1ee28SMatheus Ferst&VX_mp          rt mp:bool vrb
7395f1ee28SMatheus Ferst@VX_mp          ...... rt:5 .... mp:1 vrb:5 ...........         &VX_mp
7495f1ee28SMatheus Ferst
75f622ebe7SMatheus Ferst&VX_n           rt vrb n
76f622ebe7SMatheus Ferst@VX_n           ...... rt:5 .. n:3 vrb:5 ...........            &VX_n
77f622ebe7SMatheus Ferst
78fb5303ccSMatheus Ferst&VX_tb_rc       vrt vrb rc:bool
79fb5303ccSMatheus Ferst@VX_tb_rc       ...... vrt:5 ..... vrb:5 rc:1 ..........        &VX_tb_rc
80fb5303ccSMatheus Ferst
8123832ae6SMatheus Ferst&VX_uim4        vrt uim vrb
8223832ae6SMatheus Ferst@VX_uim4        ...... vrt:5 . uim:4 vrb:5 ...........          &VX_uim4
8323832ae6SMatheus Ferst
845f1470b0SMatheus Ferst&VX_tb          vrt vrb
855f1470b0SMatheus Ferst@VX_tb          ...... vrt:5 ..... vrb:5 ...........            &VX_tb
865f1470b0SMatheus Ferst
87f2aabda8SRichard Henderson&X              rt ra rb
88f2aabda8SRichard Henderson@X              ...... rt:5 ra:5 rb:5 .......... .              &X
89f2aabda8SRichard Henderson
90afdc9310SLuis Pires&X_rc           rt ra rb rc:bool
91afdc9310SLuis Pires@X_rc           ...... rt:5 ra:5 rb:5 .......... rc:1           &X_rc
92afdc9310SLuis Pires
9338d3690bSMatheus Ferst&X_sa           rs ra
9438d3690bSMatheus Ferst@X_sa           ...... rs:5 ra:5 ..... .......... .             &X_sa
9538d3690bSMatheus Ferst
96afdc9310SLuis Pires%x_frtp         22:4 !function=times_2
97afdc9310SLuis Pires%x_frap         17:4 !function=times_2
98afdc9310SLuis Pires%x_frbp         12:4 !function=times_2
99afdc9310SLuis Pires@X_tp_ap_bp_rc  ...... ....0 ....0 ....0 .......... rc:1        &X_rc rt=%x_frtp ra=%x_frap rb=%x_frbp
100afdc9310SLuis Pires
101afdc9310SLuis Pires@X_tp_a_bp_rc   ...... ....0 ra:5 ....0 .......... rc:1         &X_rc rt=%x_frtp rb=%x_frbp
102afdc9310SLuis Pires
103394c2e2fSVíctor Colombo&X_t            rt
104394c2e2fSVíctor Colombo@X_t            ...... rt:5 ..... ..... .......... .            &X_t
105394c2e2fSVíctor Colombo
10667332e07SMatheus Ferst&X_tb           rt rb
10767332e07SMatheus Ferst@X_tb           ...... rt:5 ..... rb:5 .......... .             &X_tb
10867332e07SMatheus Ferst
109f80d04d5SVíctor Colombo&X_t_rc         rt rc:bool
110f80d04d5SVíctor Colombo@X_t_rc         ...... rt:5 ..... ..... .......... rc:1         &X_t_rc
111f80d04d5SVíctor Colombo
112c8ef4d1eSLuis Pires&X_tb_rc        rt rb rc:bool
113c8ef4d1eSLuis Pires@X_tb_rc        ...... rt:5 ..... rb:5 .......... rc:1          &X_tb_rc
114c8ef4d1eSLuis Pires
115c8ef4d1eSLuis Pires@X_tbp_rc       ...... ....0 ..... ....0 .......... rc:1        &X_tb_rc rt=%x_frtp rb=%x_frbp
116c8ef4d1eSLuis Pires
117c8ef4d1eSLuis Pires@X_tp_b_rc      ...... ....0 ..... rb:5 .......... rc:1         &X_tb_rc rt=%x_frtp
118c8ef4d1eSLuis Pires
119c8ef4d1eSLuis Pires@X_t_bp_rc      ...... rt:5 ..... ....0 .......... rc:1         &X_tb_rc rb=%x_frbp
120c8ef4d1eSLuis Pires
1219a14365eSMatheus Ferst&X_bi           rt bi
122bbecdb22SVíctor Colombo@X_bi           ...... rt:5 bi:5 ..... .......... .             &X_bi
1239a14365eSMatheus Ferst
12485c38a46SLuis Pires&X_bf           bf ra rb
12585c38a46SLuis Pires@X_bf           ...... bf:3 .. ra:5 rb:5 .......... .           &X_bf
12685c38a46SLuis Pires
12785c38a46SLuis Pires@X_bf_ap_bp     ...... bf:3 .. ....0 ....0 .......... .         &X_bf ra=%x_frap rb=%x_frbp
12885c38a46SLuis Pires
12985c38a46SLuis Pires@X_bf_a_bp      ...... bf:3 .. ra:5 ....0 .......... .          &X_bf rb=%x_frbp
13085c38a46SLuis Pires
13185c38a46SLuis Pires&X_bf_uim       bf uim rb
13285c38a46SLuis Pires@X_bf_uim       ...... bf:3 . uim:6 rb:5 .......... .           &X_bf_uim
13385c38a46SLuis Pires
13485c38a46SLuis Pires@X_bf_uim_bp    ...... bf:3 . uim:6 ....0 .......... .          &X_bf_uim rb=%x_frbp
13585c38a46SLuis Pires
1368f0a4b6aSMatheus Ferst&X_bfl          bf l:bool ra rb
137bbecdb22SVíctor Colombo@X_bfl          ...... bf:3 . l:1 ra:5 rb:5 .......... .        &X_bfl
1388f0a4b6aSMatheus Ferst
139bf8adfd8SVíctor Colombo&X_imm2         rt imm
140bf8adfd8SVíctor Colombo@X_imm2         ...... rt:5 ..... ... imm:2 .......... .        &X_imm2
141bf8adfd8SVíctor Colombo
1426cef305fSVíctor Colombo&X_imm3         rt imm
1436cef305fSVíctor Colombo@X_imm3         ...... rt:5 ..... .. imm:3 .......... .         &X_imm3
1446cef305fSVíctor Colombo
1456166fcedSBruno Larsen (billionai)%x_xt           0:1 21:5
146b090f4f1SMatheus Ferst&X_imm5         xt imm:uint8_t vrb
147b090f4f1SMatheus Ferst@X_imm5         ...... ..... imm:5 vrb:5 .......... .           &X_imm5 xt=%x_xt
148b090f4f1SMatheus Ferst
1496166fcedSBruno Larsen (billionai)&X_imm8         xt imm:uint8_t
1506166fcedSBruno Larsen (billionai)@X_imm8         ...... ..... .. imm:8 .......... .              &X_imm8 xt=%x_xt
1516166fcedSBruno Larsen (billionai)
1522bfcb7a3SLucas Coutinho&X_ih           ih:uint8_t
1532bfcb7a3SLucas Coutinho@X_ih           ...... .. ih:3 ..... ..... .......... .         &X_ih
1542bfcb7a3SLucas Coutinho
15543507e47SLucas Coutinho&X_rb           rb
15643507e47SLucas Coutinho@X_rb           ...... ..... ..... rb:5 .......... .            &X_rb
15743507e47SLucas Coutinho
158491a2553SLucas Coutinho&X_rs_l         rs l:bool
159491a2553SLucas Coutinho@X_rs_l         ...... rs:5 .... l:1 ..... .......... .         &X_rs_l
160491a2553SLucas Coutinho
1616e26b85dSMatheus Ferst&X_uim5         xt uim:uint8_t
1626e26b85dSMatheus Ferst@X_uim5         ...... ..... ..... uim:5 .......... .           &X_uim5 xt=%x_xt
1636e26b85dSMatheus Ferst
164a2329747SLuis Pires&X_tb_sp_rc     rt rb sp rc:bool
165a2329747SLuis Pires@X_tb_sp_rc     ...... rt:5 sp:2 ... rb:5 .......... rc:1       &X_tb_sp_rc
166a2329747SLuis Pires
167a2329747SLuis Pires@X_tbp_sp_rc    ...... ....0 sp:2 ... ....0 .......... rc:1     &X_tb_sp_rc rt=%x_frtp rb=%x_frbp
168a2329747SLuis Pires
169a2329747SLuis Pires&X_tb_s_rc      rt rb s:bool rc:bool
170a2329747SLuis Pires@X_tb_s_rc      ...... rt:5 s:1 .... rb:5 .......... rc:1       &X_tb_s_rc
171a2329747SLuis Pires
172a2329747SLuis Pires@X_tbp_s_rc     ...... ....0 s:1 .... ....0 .......... rc:1     &X_tb_s_rc rt=%x_frtp rb=%x_frbp
173a2329747SLuis Pires
17470426b5bSLucas Mateus Castro (alqotel)%x_rt_tsx       0:1 21:5
17570426b5bSLucas Mateus Castro (alqotel)@X_TSX          ...... ..... ra:5 rb:5 .......... .             &X rt=%x_rt_tsx
176226ce506SLucas Mateus Castro (alqotel)@X_TSXP         ...... ..... ra:5 rb:5 .......... .             &X rt=%rt_tsxp
17770426b5bSLucas Mateus Castro (alqotel)
178670f1da3SVíctor Colombo%x_dw           0:1 21:5 !function=dw_compose_ea
179670f1da3SVíctor Colombo@X_DW           ...... ..... ra:5 rb:5 .......... .             &X rt=%x_dw
180670f1da3SVíctor Colombo
181d39b2cc7SLuis Pires&X_frtp_vrb     frtp vrb
182d39b2cc7SLuis Pires@X_frtp_vrb     ...... ....0 ..... vrb:5 .......... .           &X_frtp_vrb frtp=%x_frtp
183d39b2cc7SLuis Pires
184328747f3SLuis Pires&X_vrt_frbp     vrt frbp
185328747f3SLuis Pires@X_vrt_frbp     ...... vrt:5 ..... ....0 .......... .           &X_vrt_frbp frbp=%x_frbp
186328747f3SLuis Pires
187a702c533SLucas Mateus Castro (alqotel)&X_a            ra
188a702c533SLucas Mateus Castro (alqotel)@X_a            ...... ra:3 .. ..... ..... .......... .         &X_a
189a702c533SLucas Mateus Castro (alqotel)
190a9bd40d9SChinmay Rath&XO             rt ra rb oe:bool rc:bool
191a9bd40d9SChinmay Rath@XO             ...... rt:5 ra:5 rb:5 oe:1 ......... rc:1       &XO
192a9bd40d9SChinmay Rath
193a9bd40d9SChinmay Rath&XO_ta          rt ra oe:bool rc:bool
194a9bd40d9SChinmay Rath@XO_ta          ...... rt:5 ra:5 ..... oe:1 ......... rc:1      &XO_ta
195a9bd40d9SChinmay Rath
196c5df1898SVictor Colombo%xx_xt          0:1 21:5
197c5df1898SVictor Colombo%xx_xb          1:1 11:5
198c5df1898SVictor Colombo%xx_xa          2:1 16:5
19943d55fc2SMatheus Ferst%xx_xc          3:1 6:5
2003909ff1fSVíctor Colombo&XX2            xt xb
2013909ff1fSVíctor Colombo@XX2            ...... ..... ..... ..... ......... ..           &XX2 xt=%xx_xt xb=%xx_xb
2023909ff1fSVíctor Colombo
2038f5eeee3SMatheus Ferst&XX2_uim        xt xb uim:uint8_t
2048f5eeee3SMatheus Ferst@XX2_uim2       ...... ..... ... uim:2 ..... ......... ..       &XX2_uim xt=%xx_xt xb=%xx_xb
2058f5eeee3SMatheus Ferst
2068f5eeee3SMatheus Ferst@XX2_uim4       ...... ..... . uim:4 ..... ......... ..         &XX2_uim xt=%xx_xt xb=%xx_xb
207c5df1898SVictor Colombo
208a70a5247SLucas Mateus Castro (alqotel)%xx_uim7        6:1 2:1 16:5
209a70a5247SLucas Mateus Castro (alqotel)@XX2_uim7       ...... ..... ..... ..... .... . ... . ..        &XX2_uim xt=%xx_xt xb=%xx_xb uim=%xx_uim7
210a70a5247SLucas Mateus Castro (alqotel)
211da3c53baSLucas Mateus Castro (alqotel)&XX2_bf_uim     bf xb uim
212da3c53baSLucas Mateus Castro (alqotel)@XX2_bf_uim     ...... bf:3 uim:7 ..... ......... . .           &XX2_bf_uim
213da3c53baSLucas Mateus Castro (alqotel)
214d518239bSVíctor Colombo&XX2_bf_xb      bf xb
215d518239bSVíctor Colombo@XX2_bf_xb      ...... bf:3 .. ..... ..... ......... . .        &XX2_bf_xb xb=%xx_xb
216d518239bSVíctor Colombo
217c5df1898SVictor Colombo&XX3            xt xa xb
218c5df1898SVictor Colombo@XX3            ...... ..... ..... ..... ........ ...           &XX3 xt=%xx_xt xa=%xx_xa xb=%xx_xb
21930dfca8dSBruno Larsen (billionai)
22034553153SLucas Mateus Castro (alqotel)# 32 bit GER instructions have all mask bits considered 1
22134553153SLucas Mateus Castro (alqotel)&MMIRR_XX3      xa xb xt pmsk xmsk ymsk
22234553153SLucas Mateus Castro (alqotel)%xx_at          23:3
223c29018ccSLucas Mateus Castro (alqotel)%xx_xa_pair     2:1 17:4 !function=times_2
22434553153SLucas Mateus Castro (alqotel)@XX3_at         ...... ... .. ..... ..... ........ ...          &MMIRR_XX3 xt=%xx_at xb=%xx_xb \
22534553153SLucas Mateus Castro (alqotel)                                                                pmsk=255 xmsk=15 ymsk=15
22634553153SLucas Mateus Castro (alqotel)
227d31b2c19SMatheus Ferst&XX3_dm         xt xa xb dm
228d31b2c19SMatheus Ferst@XX3_dm         ...... ..... ..... ..... . dm:2 ..... ...       &XX3_dm xt=%xx_xt xa=%xx_xa xb=%xx_xb
229d31b2c19SMatheus Ferst
23043d55fc2SMatheus Ferst&XX4            xt xa xb xc
23143d55fc2SMatheus Ferst@XX4            ...... ..... ..... ..... ..... .. ....          &XX4 xt=%xx_xt xa=%xx_xa xb=%xx_xb xc=%xx_xc
23243d55fc2SMatheus Ferst
23387bc8e52SLuis Pires&Z22_bf_fra     bf fra dm
23487bc8e52SLuis Pires@Z22_bf_fra     ...... bf:3 .. fra:5 dm:6 ......... .           &Z22_bf_fra
23587bc8e52SLuis Pires
23687bc8e52SLuis Pires%z22_frap       17:4 !function=times_2
23787bc8e52SLuis Pires@Z22_bf_frap    ...... bf:3 .. ....0 dm:6 ......... .           &Z22_bf_fra fra=%z22_frap
23887bc8e52SLuis Pires
239a2329747SLuis Pires&Z22_ta_sh_rc   rt ra sh rc:bool
240a2329747SLuis Pires@Z22_ta_sh_rc   ...... rt:5 ra:5 sh:6 ......... rc:1            &Z22_ta_sh_rc
241a2329747SLuis Pires
242a2329747SLuis Pires%z22_frtp       22:4 !function=times_2
243a2329747SLuis Pires@Z22_tap_sh_rc  ...... ....0 ....0 sh:6 ......... rc:1          &Z22_ta_sh_rc rt=%z22_frtp ra=%z22_frap
244a2329747SLuis Pires
245a8f4bce6SLuis Pires&Z23_tab        frt fra frb rmc rc:bool
246a8f4bce6SLuis Pires@Z23_tab        ...... frt:5 fra:5 frb:5 rmc:2 ........ rc:1    &Z23_tab
247a8f4bce6SLuis Pires
248a8f4bce6SLuis Pires%z23_frtp       22:4 !function=times_2
249a8f4bce6SLuis Pires%z23_frap       17:4 !function=times_2
250a8f4bce6SLuis Pires%z23_frbp       12:4 !function=times_2
251a8f4bce6SLuis Pires@Z23_tabp       ...... ....0 ....0 ....0 rmc:2 ........ rc:1    &Z23_tab frt=%z23_frtp fra=%z23_frap frb=%z23_frbp
252a8f4bce6SLuis Pires
253a8f4bce6SLuis Pires@Z23_tp_a_bp    ...... ....0 fra:5 ....0 rmc:2 ........ rc:1    &Z23_tab frt=%z23_frtp frb=%z23_frbp
254a8f4bce6SLuis Pires
25578464edbSLuis Pires&Z23_tb         frt frb r:bool rmc rc:bool
25678464edbSLuis Pires@Z23_tb         ...... frt:5 .... r:1 frb:5 rmc:2 ........ rc:1 &Z23_tb
25778464edbSLuis Pires
25878464edbSLuis Pires@Z23_tbp        ...... ....0 .... r:1 ....0 rmc:2 ........ rc:1 &Z23_tb frt=%z23_frtp frb=%z23_frbp
25978464edbSLuis Pires
26078464edbSLuis Pires&Z23_te_tb      te frt frb rmc rc:bool
26178464edbSLuis Pires@Z23_te_tb      ...... frt:5 te:5 frb:5 rmc:2 ........ rc:1     &Z23_te_tb
26278464edbSLuis Pires
26378464edbSLuis Pires@Z23_te_tbp     ...... ....0 te:5 ....0 rmc:2 ........ rc:1     &Z23_te_tb frt=%z23_frtp frb=%z23_frbp
26478464edbSLuis Pires
265f2aabda8SRichard Henderson### Fixed-Point Load Instructions
266f2aabda8SRichard Henderson
267f2aabda8SRichard HendersonLBZ             100010 ..... ..... ................     @D
268f2aabda8SRichard HendersonLBZU            100011 ..... ..... ................     @D
269f2aabda8SRichard HendersonLBZX            011111 ..... ..... ..... 0001010111 -   @X
270f2aabda8SRichard HendersonLBZUX           011111 ..... ..... ..... 0001110111 -   @X
271f2aabda8SRichard Henderson
272f2aabda8SRichard HendersonLHZ             101000 ..... ..... ................     @D
273f2aabda8SRichard HendersonLHZU            101001 ..... ..... ................     @D
274f2aabda8SRichard HendersonLHZX            011111 ..... ..... ..... 0100010111 -   @X
275f2aabda8SRichard HendersonLHZUX           011111 ..... ..... ..... 0100110111 -   @X
276f2aabda8SRichard Henderson
277f2aabda8SRichard HendersonLHA             101010 ..... ..... ................     @D
278f2aabda8SRichard HendersonLHAU            101011 ..... ..... ................     @D
279f2aabda8SRichard HendersonLHAX            011111 ..... ..... ..... 0101010111 -   @X
280f2aabda8SRichard HendersonLHAXU           011111 ..... ..... ..... 0101110111 -   @X
281f2aabda8SRichard Henderson
282f2aabda8SRichard HendersonLWZ             100000 ..... ..... ................     @D
283f2aabda8SRichard HendersonLWZU            100001 ..... ..... ................     @D
284f2aabda8SRichard HendersonLWZX            011111 ..... ..... ..... 0000010111 -   @X
285f2aabda8SRichard HendersonLWZUX           011111 ..... ..... ..... 0000110111 -   @X
286f2aabda8SRichard Henderson
287f2aabda8SRichard HendersonLWA             111010 ..... ..... ..............10     @DS
288f2aabda8SRichard HendersonLWAX            011111 ..... ..... ..... 0101010101 -   @X
289f2aabda8SRichard HendersonLWAUX           011111 ..... ..... ..... 0101110101 -   @X
290f2aabda8SRichard Henderson
291f2aabda8SRichard HendersonLD              111010 ..... ..... ..............00     @DS
292f2aabda8SRichard HendersonLDU             111010 ..... ..... ..............01     @DS
293f2aabda8SRichard HendersonLDX             011111 ..... ..... ..... 0000010101 -   @X
294f2aabda8SRichard HendersonLDUX            011111 ..... ..... ..... 0000110101 -   @X
295f2aabda8SRichard Henderson
296e10271e1SMatheus FerstLQ              111000 ..... ..... ............ ----    @DQ_rtp
297e10271e1SMatheus Ferst
298e8f4c8d6SRichard Henderson### Fixed-Point Store Instructions
299e8f4c8d6SRichard Henderson
300e8f4c8d6SRichard HendersonSTB             100110 ..... ..... ................     @D
301e8f4c8d6SRichard HendersonSTBU            100111 ..... ..... ................     @D
302e8f4c8d6SRichard HendersonSTBX            011111 ..... ..... ..... 0011010111 -   @X
303e8f4c8d6SRichard HendersonSTBUX           011111 ..... ..... ..... 0011110111 -   @X
304e8f4c8d6SRichard Henderson
305e8f4c8d6SRichard HendersonSTH             101100 ..... ..... ................     @D
306e8f4c8d6SRichard HendersonSTHU            101101 ..... ..... ................     @D
307e8f4c8d6SRichard HendersonSTHX            011111 ..... ..... ..... 0110010111 -   @X
308e8f4c8d6SRichard HendersonSTHUX           011111 ..... ..... ..... 0110110111 -   @X
309e8f4c8d6SRichard Henderson
310e8f4c8d6SRichard HendersonSTW             100100 ..... ..... ................     @D
311e8f4c8d6SRichard HendersonSTWU            100101 ..... ..... ................     @D
312e8f4c8d6SRichard HendersonSTWX            011111 ..... ..... ..... 0010010111 -   @X
313e8f4c8d6SRichard HendersonSTWUX           011111 ..... ..... ..... 0010110111 -   @X
314e8f4c8d6SRichard Henderson
315e8f4c8d6SRichard HendersonSTD             111110 ..... ..... ..............00     @DS
316e8f4c8d6SRichard HendersonSTDU            111110 ..... ..... ..............01     @DS
317e8f4c8d6SRichard HendersonSTDX            011111 ..... ..... ..... 0010010101 -   @X
318e8f4c8d6SRichard HendersonSTDUX           011111 ..... ..... ..... 0010110101 -   @X
319e8f4c8d6SRichard Henderson
320e10271e1SMatheus FerstSTQ             111110 ..... ..... ..............10     @DS_rtp
321e10271e1SMatheus Ferst
3228f0a4b6aSMatheus Ferst### Fixed-Point Compare Instructions
3238f0a4b6aSMatheus Ferst
3248f0a4b6aSMatheus FerstCMP             011111 ... - . ..... ..... 0000000000 - @X_bfl
3258f0a4b6aSMatheus FerstCMPL            011111 ... - . ..... ..... 0000100000 - @X_bfl
3268f0a4b6aSMatheus FerstCMPI            001011 ... - . ..... ................   @D_bfs
3278f0a4b6aSMatheus FerstCMPLI           001010 ... - . ..... ................   @D_bfu
3288f0a4b6aSMatheus Ferst
3295e560864SRichard Henderson### Fixed-Point Arithmetic Instructions
3305e560864SRichard Henderson
331a9bd40d9SChinmay RathADD             011111 ..... ..... ..... . 100001010 .  @XO
332a9bd40d9SChinmay RathADDC            011111 ..... ..... ..... . 000001010 .  @XO
333a9bd40d9SChinmay RathADDE            011111 ..... ..... ..... . 010001010 .  @XO
334a9bd40d9SChinmay Rath
335a9bd40d9SChinmay Rath# ADDEX is Z23-form, with CY=0; all other values for CY are reserved.
336a9bd40d9SChinmay Rath# This works out the same as X-form.
337a9bd40d9SChinmay RathADDEX           011111 ..... ..... ..... 00 10101010 -  @X
338a9bd40d9SChinmay Rath
3395e560864SRichard HendersonADDI            001110 ..... ..... ................     @D
3405e560864SRichard HendersonADDIS           001111 ..... ..... ................     @D
341a9bd40d9SChinmay RathADDIC           001100 ..... ..... ................     @D
342a9bd40d9SChinmay RathADDIC_          001101 ..... ..... ................     @D
3439a14365eSMatheus Ferst
344e7a5d578SMatheus FerstADDPCIS         010011 ..... ..... .......... 00010 .   @DX
345a9bd40d9SChinmay RathADDME           011111 ..... ..... ----- . 011101010 .  @XO_ta
346a9bd40d9SChinmay RathADDZE           011111 ..... ..... ----- . 011001010 .  @XO_ta
347a9bd40d9SChinmay Rath
348a9bd40d9SChinmay RathSUBF            011111 ..... ..... ..... . 000101000 .  @XO
349a9bd40d9SChinmay RathSUBFIC          001000 ..... ..... ................     @D
350a9bd40d9SChinmay RathSUBFC           011111 ..... ..... ..... . 000001000 .  @XO
351a9bd40d9SChinmay RathSUBFE           011111 ..... ..... ..... . 010001000 .  @XO
352a9bd40d9SChinmay Rath
353a9bd40d9SChinmay RathSUBFME          011111 ..... ..... ----- . 011101000 .  @XO_ta
354a9bd40d9SChinmay RathSUBFZE          011111 ..... ..... ----- . 011001000 .  @XO_ta
355e7a5d578SMatheus Ferst
35689ccd7dcSMatheus Ferst## Fixed-Point Logical Instructions
35789ccd7dcSMatheus Ferst
35889ccd7dcSMatheus FerstCFUGED          011111 ..... ..... ..... 0011011100 -   @X
35982be6e02SLuis PiresCNTLZDM         011111 ..... ..... ..... 0000111011 -   @X
360f356b3baSLuis PiresCNTTZDM         011111 ..... ..... ..... 1000111011 -   @X
36121ba6e58SMatheus FerstPDEPD           011111 ..... ..... ..... 0010011100 -   @X
3628bdb7606SMatheus FerstPEXTD           011111 ..... ..... ..... 0010111100 -   @X
36389ccd7dcSMatheus Ferst
364670f1da3SVíctor Colombo# Fixed-Point Hash Instructions
365670f1da3SVíctor Colombo
366670f1da3SVíctor ColomboHASHST          011111 ..... ..... ..... 1011010010 .   @X_DW
367670f1da3SVíctor ColomboHASHCHK         011111 ..... ..... ..... 1011110010 .   @X_DW
36853ae2aebSVíctor ColomboHASHSTP         011111 ..... ..... ..... 1010010010 .   @X_DW
36953ae2aebSVíctor ColomboHASHCHKP        011111 ..... ..... ..... 1010110010 .   @X_DW
370670f1da3SVíctor Colombo
3716addef4dSMatheus Ferst## BCD Assist
3726addef4dSMatheus Ferst
3736addef4dSMatheus FerstADDG6S          011111 ..... ..... ..... - 001001010 -  @X
3746b924d4aSMatheus FerstCDTBCD          011111 ..... ..... ----- 0100011010 -   @X_sa
37538d3690bSMatheus FerstCBCDTD          011111 ..... ..... ----- 0100111010 -   @X_sa
3766addef4dSMatheus Ferst
377fbd2e60eSFernando Eckhardt Valle### Float-Point Load Instructions
378fbd2e60eSFernando Eckhardt Valle
379fbd2e60eSFernando Eckhardt ValleLFS             110000 ..... ..... ................     @D
380fbd2e60eSFernando Eckhardt ValleLFSU            110001 ..... ..... ................     @D
381fbd2e60eSFernando Eckhardt ValleLFSX            011111 ..... ..... ..... 1000010111 -   @X
382fbd2e60eSFernando Eckhardt ValleLFSUX           011111 ..... ..... ..... 1000110111 -   @X
383fbd2e60eSFernando Eckhardt Valle
384fbd2e60eSFernando Eckhardt ValleLFD             110010 ..... ..... ................     @D
385fbd2e60eSFernando Eckhardt ValleLFDU            110011 ..... ..... ................     @D
386fbd2e60eSFernando Eckhardt ValleLFDX            011111 ..... ..... ..... 1001010111 -   @X
387fbd2e60eSFernando Eckhardt ValleLFDUX           011111 ..... ..... ..... 1001110111 -   @X
388fbd2e60eSFernando Eckhardt Valle
389fbd2e60eSFernando Eckhardt Valle### Float-Point Store Instructions
390fbd2e60eSFernando Eckhardt Valle
391fbd2e60eSFernando Eckhardt ValleSTFS            110100 ..... ...... ...............     @D
392fbd2e60eSFernando Eckhardt ValleSTFSU           110101 ..... ...... ...............     @D
393fbd2e60eSFernando Eckhardt ValleSTFSX           011111 ..... ...... .... 1010010111 -   @X
394fbd2e60eSFernando Eckhardt ValleSTFSUX          011111 ..... ...... .... 1010110111 -   @X
395fbd2e60eSFernando Eckhardt Valle
396fbd2e60eSFernando Eckhardt ValleSTFD            110110 ..... ...... ...............     @D
397fbd2e60eSFernando Eckhardt ValleSTFDU           110111 ..... ...... ...............     @D
398fbd2e60eSFernando Eckhardt ValleSTFDX           011111 ..... ...... .... 1011010111 -   @X
399fbd2e60eSFernando Eckhardt ValleSTFDUX          011111 ..... ...... .... 1011110111 -   @X
400fbd2e60eSFernando Eckhardt Valle
4016a8654d6SVíctor Colombo### Floating-Point Arithmetic Instructions
4026a8654d6SVíctor Colombo
4036a8654d6SVíctor ColomboFSQRT           111111 ..... ----- ..... ----- 10110 .  @A_tb
4044896c15bSVíctor ColomboFSQRTS          111011 ..... ----- ..... ----- 10110 .  @A_tb
4056a8654d6SVíctor Colombo
406eb69a84bSMatheus Ferst### Floating-Point Select Instruction
407eb69a84bSMatheus Ferst
408eb69a84bSMatheus FerstFSEL            111111 ..... ..... ..... ..... 10111 .  @A
409eb69a84bSMatheus Ferst
4109a14365eSMatheus Ferst### Move To/From System Register Instructions
4119a14365eSMatheus Ferst
4129a14365eSMatheus FerstSETBC           011111 ..... ..... ----- 0110000000 -   @X_bi
4139a14365eSMatheus FerstSETBCR          011111 ..... ..... ----- 0110100000 -   @X_bi
4149a14365eSMatheus FerstSETNBC          011111 ..... ..... ----- 0111000000 -   @X_bi
4159a14365eSMatheus FerstSETNBCR         011111 ..... ..... ----- 0111100000 -   @X_bi
416a5f56954SMatheus Ferst
417bf8adfd8SVíctor Colombo### Move To/From FPSCR
418bf8adfd8SVíctor Colombo
4195260ecffSRichard Purdie{
4205260ecffSRichard Purdie  # Before Power ISA v3.0, MFFS bits 11~15 were reserved and should be ignored
4215260ecffSRichard Purdie  MFFS_ISA207     111111 ..... ----- ----- 1001000111 .   @X_t_rc
4225260ecffSRichard Purdie  [
423f80d04d5SVíctor Colombo    MFFS            111111 ..... 00000 ----- 1001000111 .   @X_t_rc
424394c2e2fSVíctor Colombo    MFFSCE          111111 ..... 00001 ----- 1001000111 -   @X_t
425bf8adfd8SVíctor Colombo    MFFSCRN         111111 ..... 10110 ..... 1001000111 -   @X_tb
4266cef305fSVíctor Colombo    MFFSCDRN        111111 ..... 10100 ..... 1001000111 -   @X_tb
427bf8adfd8SVíctor Colombo    MFFSCRNI        111111 ..... 10111 ---.. 1001000111 -   @X_imm2
4286cef305fSVíctor Colombo    MFFSCDRNI       111111 ..... 10101 --... 1001000111 -   @X_imm3
4293e5bce70SVíctor Colombo    MFFSL           111111 ..... 11000 ----- 1001000111 -   @X_t
4305260ecffSRichard Purdie  ]
4315260ecffSRichard Purdie}
432bf8adfd8SVíctor Colombo
433afdc9310SLuis Pires### Decimal Floating-Point Arithmetic Instructions
434afdc9310SLuis Pires
435afdc9310SLuis PiresDADD            111011 ..... ..... ..... 0000000010 .   @X_rc
436afdc9310SLuis PiresDADDQ           111111 ..... ..... ..... 0000000010 .   @X_tp_ap_bp_rc
437afdc9310SLuis Pires
438afdc9310SLuis PiresDSUB            111011 ..... ..... ..... 1000000010 .   @X_rc
439afdc9310SLuis PiresDSUBQ           111111 ..... ..... ..... 1000000010 .   @X_tp_ap_bp_rc
440afdc9310SLuis Pires
441afdc9310SLuis PiresDMUL            111011 ..... ..... ..... 0000100010 .   @X_rc
442afdc9310SLuis PiresDMULQ           111111 ..... ..... ..... 0000100010 .   @X_tp_ap_bp_rc
443afdc9310SLuis Pires
444afdc9310SLuis PiresDDIV            111011 ..... ..... ..... 1000100010 .   @X_rc
445afdc9310SLuis PiresDDIVQ           111111 ..... ..... ..... 1000100010 .   @X_tp_ap_bp_rc
446afdc9310SLuis Pires
44785c38a46SLuis Pires### Decimal Floating-Point Compare Instructions
44885c38a46SLuis Pires
44985c38a46SLuis PiresDCMPU           111011 ... -- ..... ..... 1010000010 -  @X_bf
45085c38a46SLuis PiresDCMPUQ          111111 ... -- ..... ..... 1010000010 -  @X_bf_ap_bp
45185c38a46SLuis Pires
45285c38a46SLuis PiresDCMPO           111011 ... -- ..... ..... 0010000010 -  @X_bf
45385c38a46SLuis PiresDCMPOQ          111111 ... -- ..... ..... 0010000010 -  @X_bf_ap_bp
45485c38a46SLuis Pires
45587bc8e52SLuis Pires### Decimal Floating-Point Test Instructions
45687bc8e52SLuis Pires
45787bc8e52SLuis PiresDTSTDC          111011 ... -- ..... ...... 011000010 -  @Z22_bf_fra
45887bc8e52SLuis PiresDTSTDCQ         111111 ... -- ..... ...... 011000010 -  @Z22_bf_frap
45987bc8e52SLuis Pires
46087bc8e52SLuis PiresDTSTDG          111011 ... -- ..... ...... 011100010 -  @Z22_bf_fra
46187bc8e52SLuis PiresDTSTDGQ         111111 ... -- ..... ...... 011100010 -  @Z22_bf_frap
46287bc8e52SLuis Pires
46385c38a46SLuis PiresDTSTEX          111011 ... -- ..... ..... 0010100010 -  @X_bf
46485c38a46SLuis PiresDTSTEXQ         111111 ... -- ..... ..... 0010100010 -  @X_bf_ap_bp
46585c38a46SLuis Pires
46685c38a46SLuis PiresDTSTSF          111011 ... -- ..... ..... 1010100010 -  @X_bf
46785c38a46SLuis PiresDTSTSFQ         111111 ... -- ..... ..... 1010100010 -  @X_bf_a_bp
46885c38a46SLuis Pires
46985c38a46SLuis PiresDTSTSFI         111011 ... - ...... ..... 1010100011 -  @X_bf_uim
47085c38a46SLuis PiresDTSTSFIQ        111111 ... - ...... ..... 1010100011 -  @X_bf_uim_bp
47185c38a46SLuis Pires
47278464edbSLuis Pires### Decimal Floating-Point Quantum Adjustment Instructions
47378464edbSLuis Pires
47478464edbSLuis PiresDQUAI           111011 ..... ..... ..... .. 01000011 .  @Z23_te_tb
47578464edbSLuis PiresDQUAIQ          111111 ..... ..... ..... .. 01000011 .  @Z23_te_tbp
47678464edbSLuis Pires
477a8f4bce6SLuis PiresDQUA            111011 ..... ..... ..... .. 00000011 .  @Z23_tab
478a8f4bce6SLuis PiresDQUAQ           111111 ..... ..... ..... .. 00000011 .  @Z23_tabp
479a8f4bce6SLuis Pires
480a8f4bce6SLuis PiresDRRND           111011 ..... ..... ..... .. 00100011 .  @Z23_tab
481a8f4bce6SLuis PiresDRRNDQ          111111 ..... ..... ..... .. 00100011 .  @Z23_tp_a_bp
482a8f4bce6SLuis Pires
48378464edbSLuis PiresDRINTX          111011 ..... ---- . ..... .. 01100011 . @Z23_tb
48478464edbSLuis PiresDRINTXQ         111111 ..... ---- . ..... .. 01100011 . @Z23_tbp
48578464edbSLuis Pires
48678464edbSLuis PiresDRINTN          111011 ..... ---- . ..... .. 11100011 . @Z23_tb
48778464edbSLuis PiresDRINTNQ         111111 ..... ---- . ..... .. 11100011 . @Z23_tbp
48878464edbSLuis Pires
489d39b2cc7SLuis Pires### Decimal Floating-Point Conversion Instructions
490d39b2cc7SLuis Pires
491c8ef4d1eSLuis PiresDCTDP           111011 ..... ----- ..... 0100000010 .   @X_tb_rc
492c8ef4d1eSLuis PiresDCTQPQ          111111 ..... ----- ..... 0100000010 .   @X_tp_b_rc
493c8ef4d1eSLuis Pires
494c8ef4d1eSLuis PiresDRSP            111011 ..... ----- ..... 1100000010 .   @X_tb_rc
495c8ef4d1eSLuis PiresDRDPQ           111111 ..... ----- ..... 1100000010 .   @X_tbp_rc
496c8ef4d1eSLuis Pires
497c8ef4d1eSLuis PiresDCFFIX          111011 ..... ----- ..... 1100100010 .   @X_tb_rc
498c8ef4d1eSLuis PiresDCFFIXQ         111111 ..... ----- ..... 1100100010 .   @X_tp_b_rc
499d39b2cc7SLuis PiresDCFFIXQQ        111111 ..... 00000 ..... 1111100010 -   @X_frtp_vrb
500c8ef4d1eSLuis Pires
501c8ef4d1eSLuis PiresDCTFIX          111011 ..... ----- ..... 0100100010 .   @X_tb_rc
502c8ef4d1eSLuis PiresDCTFIXQ         111111 ..... ----- ..... 0100100010 .   @X_t_bp_rc
503328747f3SLuis PiresDCTFIXQQ        111111 ..... 00001 ..... 1111100010 -   @X_vrt_frbp
504d39b2cc7SLuis Pires
505afdc9310SLuis Pires### Decimal Floating-Point Format Instructions
506afdc9310SLuis Pires
507a2329747SLuis PiresDDEDPD          111011 ..... .. --- ..... 0101000010 .  @X_tb_sp_rc
508a2329747SLuis PiresDDEDPDQ         111111 ..... .. --- ..... 0101000010 .  @X_tbp_sp_rc
509a2329747SLuis Pires
510a2329747SLuis PiresDENBCD          111011 ..... . ---- ..... 1101000010 .  @X_tb_s_rc
511a2329747SLuis PiresDENBCDQ         111111 ..... . ---- ..... 1101000010 .  @X_tbp_s_rc
512a2329747SLuis Pires
513c8ef4d1eSLuis PiresDXEX            111011 ..... ----- ..... 0101100010 .   @X_tb_rc
514c8ef4d1eSLuis PiresDXEXQ           111111 ..... ----- ..... 0101100010 .   @X_t_bp_rc
515c8ef4d1eSLuis Pires
516afdc9310SLuis PiresDIEX            111011 ..... ..... ..... 1101100010 .   @X_rc
517afdc9310SLuis PiresDIEXQ           111111 ..... ..... ..... 1101100010 .   @X_tp_a_bp_rc
518afdc9310SLuis Pires
519a2329747SLuis PiresDSCLI           111011 ..... ..... ...... 001000010 .   @Z22_ta_sh_rc
520a2329747SLuis PiresDSCLIQ          111111 ..... ..... ...... 001000010 .   @Z22_tap_sh_rc
521a2329747SLuis Pires
522a2329747SLuis PiresDSCRI           111011 ..... ..... ...... 001100010 .   @Z22_ta_sh_rc
523a2329747SLuis PiresDSCRIQ          111111 ..... ..... ...... 001100010 .   @Z22_tap_sh_rc
524a2329747SLuis Pires
525e82ca8acSMatheus Ferst## Vector Exclusive-OR-based Instructions
526e82ca8acSMatheus Ferst
527e82ca8acSMatheus FerstVPMSUMD         000100 ..... ..... ..... 10011001000    @VX
528e82ca8acSMatheus Ferst
5296a394290SMatheus Ferst## Vector Integer Instructions
5306a394290SMatheus Ferst
5316a394290SMatheus FerstVCMPEQUB        000100 ..... ..... ..... . 0000000110   @VC
5326a394290SMatheus FerstVCMPEQUH        000100 ..... ..... ..... . 0001000110   @VC
5336a394290SMatheus FerstVCMPEQUW        000100 ..... ..... ..... . 0010000110   @VC
5346a394290SMatheus FerstVCMPEQUD        000100 ..... ..... ..... . 0011000111   @VC
5357b3da08eSMatheus FerstVCMPEQUQ        000100 ..... ..... ..... . 0111000111   @VC
5366a394290SMatheus Ferst
5376a394290SMatheus FerstVCMPGTSB        000100 ..... ..... ..... . 1100000110   @VC
5386a394290SMatheus FerstVCMPGTSH        000100 ..... ..... ..... . 1101000110   @VC
5396a394290SMatheus FerstVCMPGTSW        000100 ..... ..... ..... . 1110000110   @VC
5406a394290SMatheus FerstVCMPGTSD        000100 ..... ..... ..... . 1111000111   @VC
54150449ae4SMatheus FerstVCMPGTSQ        000100 ..... ..... ..... . 1110000111   @VC
5426a394290SMatheus Ferst
5436a394290SMatheus FerstVCMPGTUB        000100 ..... ..... ..... . 1000000110   @VC
5446a394290SMatheus FerstVCMPGTUH        000100 ..... ..... ..... . 1001000110   @VC
5456a394290SMatheus FerstVCMPGTUW        000100 ..... ..... ..... . 1010000110   @VC
5466a394290SMatheus FerstVCMPGTUD        000100 ..... ..... ..... . 1011000111   @VC
54750449ae4SMatheus FerstVCMPGTUQ        000100 ..... ..... ..... . 1010000111   @VC
5486a394290SMatheus Ferst
5496a394290SMatheus FerstVCMPNEB         000100 ..... ..... ..... . 0000000111   @VC
5506a394290SMatheus FerstVCMPNEH         000100 ..... ..... ..... . 0001000111   @VC
5516a394290SMatheus FerstVCMPNEW         000100 ..... ..... ..... . 0010000111   @VC
5526a394290SMatheus Ferst
553eb936dc0SMatheus FerstVCMPNEZB        000100 ..... ..... ..... . 0100000111   @VC
554eb936dc0SMatheus FerstVCMPNEZH        000100 ..... ..... ..... . 0101000111   @VC
555eb936dc0SMatheus FerstVCMPNEZW        000100 ..... ..... ..... . 0110000111   @VC
556eb936dc0SMatheus Ferst
557b58f3931SMatheus FerstVCMPSQ          000100 ... -- ..... ..... 00101000001   @VX_bf
558b58f3931SMatheus FerstVCMPUQ          000100 ... -- ..... ..... 00100000001   @VX_bf
559b58f3931SMatheus Ferst
560c85929b2SLucas Mateus Castro (alqotel)## Vector Integer Average Instructions
561c85929b2SLucas Mateus Castro (alqotel)
562c85929b2SLucas Mateus Castro (alqotel)VAVGSB          000100 ..... ..... ..... 10100000010    @VX
563c85929b2SLucas Mateus Castro (alqotel)VAVGSH          000100 ..... ..... ..... 10101000010    @VX
564c85929b2SLucas Mateus Castro (alqotel)VAVGSW          000100 ..... ..... ..... 10110000010    @VX
565c85929b2SLucas Mateus Castro (alqotel)VAVGUB          000100 ..... ..... ..... 10000000010    @VX
566c85929b2SLucas Mateus Castro (alqotel)VAVGUH          000100 ..... ..... ..... 10001000010    @VX
567c85929b2SLucas Mateus Castro (alqotel)VAVGUW          000100 ..... ..... ..... 10010000010    @VX
568c85929b2SLucas Mateus Castro (alqotel)
56926c964f8SLucas Mateus Castro (alqotel)## Vector Integer Absolute Difference Instructions
57026c964f8SLucas Mateus Castro (alqotel)
57126c964f8SLucas Mateus Castro (alqotel)VABSDUB         000100 ..... ..... ..... 10000000011    @VX
57226c964f8SLucas Mateus Castro (alqotel)VABSDUH         000100 ..... ..... ..... 10001000011    @VX
57326c964f8SLucas Mateus Castro (alqotel)VABSDUW         000100 ..... ..... ..... 10010000011    @VX
57426c964f8SLucas Mateus Castro (alqotel)
575a5f56954SMatheus Ferst## Vector Bit Manipulation Instruction
576a5f56954SMatheus Ferst
577f622ebe7SMatheus FerstVGNB            000100 ..... -- ... ..... 10011001100   @VX_n
578f622ebe7SMatheus Ferst
579a5f56954SMatheus FerstVCFUGED         000100 ..... ..... ..... 10101001101    @VX
580a2c975e1SMatheus FerstVCLZDM          000100 ..... ..... ..... 11110000100    @VX
581a2c975e1SMatheus FerstVCTZDM          000100 ..... ..... ..... 11111000100    @VX
58200a16569SMatheus FerstVPDEPD          000100 ..... ..... ..... 10111001101    @VX
58300a16569SMatheus FerstVPEXTD          000100 ..... ..... ..... 10110001101    @VX
5842c716b4dSMatheus Ferst
585d57fbd8fSLucas Mateus Castro (alqotel)VPRTYBD         000100 ..... 01001 ..... 11000000010    @VX_tb
586d57fbd8fSLucas Mateus Castro (alqotel)VPRTYBQ         000100 ..... 01010 ..... 11000000010    @VX_tb
587d57fbd8fSLucas Mateus Castro (alqotel)VPRTYBW         000100 ..... 01000 ..... 11000000010    @VX_tb
588d57fbd8fSLucas Mateus Castro (alqotel)
5892c716b4dSMatheus Ferst## Vector Permute and Formatting Instruction
5902c716b4dSMatheus Ferst
59128110b72SMatheus FerstVEXTDUBVLX      000100 ..... ..... ..... ..... 011000   @VA
59228110b72SMatheus FerstVEXTDUBVRX      000100 ..... ..... ..... ..... 011001   @VA
59328110b72SMatheus FerstVEXTDUHVLX      000100 ..... ..... ..... ..... 011010   @VA
59428110b72SMatheus FerstVEXTDUHVRX      000100 ..... ..... ..... ..... 011011   @VA
59528110b72SMatheus FerstVEXTDUWVLX      000100 ..... ..... ..... ..... 011100   @VA
59628110b72SMatheus FerstVEXTDUWVRX      000100 ..... ..... ..... ..... 011101   @VA
59728110b72SMatheus FerstVEXTDDVLX       000100 ..... ..... ..... ..... 011110   @VA
59828110b72SMatheus FerstVEXTDDVRX       000100 ..... ..... ..... ..... 011111   @VA
59928110b72SMatheus Ferst
600b422c2cbSMatheus FerstVINSERTB        000100 ..... - .... ..... 01100001101   @VX_uim4
601b422c2cbSMatheus FerstVINSERTH        000100 ..... - .... ..... 01101001101   @VX_uim4
602b422c2cbSMatheus FerstVINSERTW        000100 ..... - .... ..... 01110001101   @VX_uim4
603b422c2cbSMatheus FerstVINSERTD        000100 ..... - .... ..... 01111001101   @VX_uim4
604b422c2cbSMatheus Ferst
6052cc12af3SMatheus FerstVINSBLX         000100 ..... ..... ..... 01000001111    @VX
6062cc12af3SMatheus FerstVINSBRX         000100 ..... ..... ..... 01100001111    @VX
6072cc12af3SMatheus FerstVINSHLX         000100 ..... ..... ..... 01001001111    @VX
6082cc12af3SMatheus FerstVINSHRX         000100 ..... ..... ..... 01101001111    @VX
6092cc12af3SMatheus FerstVINSWLX         000100 ..... ..... ..... 01010001111    @VX
6102cc12af3SMatheus FerstVINSWRX         000100 ..... ..... ..... 01110001111    @VX
6112cc12af3SMatheus FerstVINSDLX         000100 ..... ..... ..... 01011001111    @VX
6122cc12af3SMatheus FerstVINSDRX         000100 ..... ..... ..... 01111001111    @VX
6132cc12af3SMatheus Ferst
61423832ae6SMatheus FerstVINSW           000100 ..... - .... ..... 00011001111   @VX_uim4
61523832ae6SMatheus FerstVINSD           000100 ..... - .... ..... 00111001111   @VX_uim4
61623832ae6SMatheus Ferst
6172c9f7958SMatheus FerstVINSBVLX        000100 ..... ..... ..... 00000001111    @VX
6182c9f7958SMatheus FerstVINSBVRX        000100 ..... ..... ..... 00100001111    @VX
6192c9f7958SMatheus FerstVINSHVLX        000100 ..... ..... ..... 00001001111    @VX
6202c9f7958SMatheus FerstVINSHVRX        000100 ..... ..... ..... 00101001111    @VX
6212c9f7958SMatheus FerstVINSWVLX        000100 ..... ..... ..... 00010001111    @VX
6222c9f7958SMatheus FerstVINSWVRX        000100 ..... ..... ..... 00110001111    @VX
6232c9f7958SMatheus Ferst
6242c716b4dSMatheus FerstVSLDBI          000100 ..... ..... ..... 00 ... 010110  @VN
6252c716b4dSMatheus FerstVSRDBI          000100 ..... ..... ..... 01 ... 010110  @VN
62672b70d5cSLucas Mateus Castro (alqotel)
62728347fe2SMatheus FerstVPERM           000100 ..... ..... ..... ..... 101011   @VA
62828347fe2SMatheus FerstVPERMR          000100 ..... ..... ..... ..... 111011   @VA
62928347fe2SMatheus Ferst
63028347fe2SMatheus FerstVSEL            000100 ..... ..... ..... ..... 101010   @VA
63128347fe2SMatheus Ferst
6320f052007SMatheus Ferst## Vector Integer Shift Instruction
6330f052007SMatheus Ferst
6340f052007SMatheus FerstVSLB            000100 ..... ..... ..... 00100000100    @VX
6350f052007SMatheus FerstVSLH            000100 ..... ..... ..... 00101000100    @VX
6360f052007SMatheus FerstVSLW            000100 ..... ..... ..... 00110000100    @VX
6370f052007SMatheus FerstVSLD            000100 ..... ..... ..... 10111000100    @VX
6383e39edb6SMatheus FerstVSLQ            000100 ..... ..... ..... 00100000101    @VX
6390f052007SMatheus Ferst
6400f052007SMatheus FerstVSRB            000100 ..... ..... ..... 01000000100    @VX
6410f052007SMatheus FerstVSRH            000100 ..... ..... ..... 01001000100    @VX
6420f052007SMatheus FerstVSRW            000100 ..... ..... ..... 01010000100    @VX
6430f052007SMatheus FerstVSRD            000100 ..... ..... ..... 11011000100    @VX
644946c3491SMatheus FerstVSRQ            000100 ..... ..... ..... 01000000101    @VX
6450f052007SMatheus Ferst
6460f052007SMatheus FerstVSRAB           000100 ..... ..... ..... 01100000100    @VX
6470f052007SMatheus FerstVSRAH           000100 ..... ..... ..... 01101000100    @VX
6480f052007SMatheus FerstVSRAW           000100 ..... ..... ..... 01110000100    @VX
6490f052007SMatheus FerstVSRAD           000100 ..... ..... ..... 01111000100    @VX
65085085bbcSMatheus FerstVSRAQ           000100 ..... ..... ..... 01100000101    @VX
6510f052007SMatheus Ferst
652df489ad6SMatheus FerstVRLB            000100 ..... ..... ..... 00000000100    @VX
653df489ad6SMatheus FerstVRLH            000100 ..... ..... ..... 00001000100    @VX
654df489ad6SMatheus FerstVRLW            000100 ..... ..... ..... 00010000100    @VX
655df489ad6SMatheus FerstVRLD            000100 ..... ..... ..... 00011000100    @VX
656aa0f34ecSMatheus FerstVRLQ            000100 ..... ..... ..... 00000000101    @VX
657df489ad6SMatheus Ferst
65802c74f0eSMatheus FerstVRLWMI          000100 ..... ..... ..... 00010000101    @VX
65902c74f0eSMatheus FerstVRLDMI          000100 ..... ..... ..... 00011000101    @VX
6607e5947dfSMatheus FerstVRLQMI          000100 ..... ..... ..... 00001000101    @VX
66102c74f0eSMatheus Ferst
66202c74f0eSMatheus FerstVRLWNM          000100 ..... ..... ..... 00110000101    @VX
66302c74f0eSMatheus FerstVRLDNM          000100 ..... ..... ..... 00111000101    @VX
6644e272668SMatheus FerstVRLQNM          000100 ..... ..... ..... 00101000101    @VX
66502c74f0eSMatheus Ferst
6669bfe9213SLucas Coutinho## Vector Integer Arithmetic Instructions
6679bfe9213SLucas Coutinho
668611bc69bSLucas Mateus Castro (alqotel)VADDCUW         000100 ..... ..... ..... 00110000000    @VX
6698290ea50SMatheus FerstVADDCUQ         000100 ..... ..... ..... 00101000000    @VX
6707ca04286SMatheus FerstVADDUQM         000100 ..... ..... ..... 00100000000    @VX
6717ca04286SMatheus Ferst
672896d92c8SMatheus FerstVADDEUQM        000100 ..... ..... ..... ..... 111100   @VA
673896d92c8SMatheus FerstVADDECUQ        000100 ..... ..... ..... ..... 111101   @VA
674896d92c8SMatheus Ferst
675611bc69bSLucas Mateus Castro (alqotel)VSUBCUW         000100 ..... ..... ..... 10110000000    @VX
676b7d30faeSMatheus FerstVSUBCUQ         000100 ..... ..... ..... 10101000000    @VX
677b132be53SMatheus FerstVSUBUQM         000100 ..... ..... ..... 10100000000    @VX
678b132be53SMatheus Ferst
679e6a5ad43SMatheus FerstVSUBECUQ        000100 ..... ..... ..... ..... 111111   @VA
680e6a5ad43SMatheus FerstVSUBEUQM        000100 ..... ..... ..... ..... 111110   @VA
681e6a5ad43SMatheus Ferst
6829bfe9213SLucas CoutinhoVEXTSB2W        000100 ..... 10000 ..... 11000000010    @VX_tb
6839bfe9213SLucas CoutinhoVEXTSH2W        000100 ..... 10001 ..... 11000000010    @VX_tb
6849bfe9213SLucas CoutinhoVEXTSB2D        000100 ..... 11000 ..... 11000000010    @VX_tb
6859bfe9213SLucas CoutinhoVEXTSH2D        000100 ..... 11001 ..... 11000000010    @VX_tb
6869bfe9213SLucas CoutinhoVEXTSW2D        000100 ..... 11010 ..... 11000000010    @VX_tb
687acf43b34SLucas CoutinhoVEXTSD2Q        000100 ..... 11011 ..... 11000000010    @VX_tb
6889bfe9213SLucas Coutinho
68990b5aadbSLucas Mateus Castro (alqotel)VNEGD           000100 ..... 00111 ..... 11000000010    @VX_tb
69090b5aadbSLucas Mateus Castro (alqotel)VNEGW           000100 ..... 00110 ..... 11000000010    @VX_tb
69190b5aadbSLucas Mateus Castro (alqotel)
6925f1470b0SMatheus Ferst## Vector Mask Manipulation Instructions
6935f1470b0SMatheus Ferst
6949193eaa9SMatheus FerstMTVSRBM         000100 ..... 10000 ..... 11001000010    @VX_tb
6959193eaa9SMatheus FerstMTVSRHM         000100 ..... 10001 ..... 11001000010    @VX_tb
6969193eaa9SMatheus FerstMTVSRWM         000100 ..... 10010 ..... 11001000010    @VX_tb
6979193eaa9SMatheus FerstMTVSRDM         000100 ..... 10011 ..... 11001000010    @VX_tb
6989193eaa9SMatheus FerstMTVSRQM         000100 ..... 10100 ..... 11001000010    @VX_tb
6999193eaa9SMatheus FerstMTVSRBMI        000100 ..... ..... .......... 01010 .   @DX_b
7009193eaa9SMatheus Ferst
7015f1470b0SMatheus FerstVEXPANDBM       000100 ..... 00000 ..... 11001000010    @VX_tb
7025f1470b0SMatheus FerstVEXPANDHM       000100 ..... 00001 ..... 11001000010    @VX_tb
7035f1470b0SMatheus FerstVEXPANDWM       000100 ..... 00010 ..... 11001000010    @VX_tb
7045f1470b0SMatheus FerstVEXPANDDM       000100 ..... 00011 ..... 11001000010    @VX_tb
7055f1470b0SMatheus FerstVEXPANDQM       000100 ..... 00100 ..... 11001000010    @VX_tb
7065f1470b0SMatheus Ferst
70717868d81SMatheus FerstVEXTRACTBM      000100 ..... 01000 ..... 11001000010    @VX_tb
70817868d81SMatheus FerstVEXTRACTHM      000100 ..... 01001 ..... 11001000010    @VX_tb
70917868d81SMatheus FerstVEXTRACTWM      000100 ..... 01010 ..... 11001000010    @VX_tb
71017868d81SMatheus FerstVEXTRACTDM      000100 ..... 01011 ..... 11001000010    @VX_tb
71117868d81SMatheus FerstVEXTRACTQM      000100 ..... 01100 ..... 11001000010    @VX_tb
71217868d81SMatheus Ferst
71395f1ee28SMatheus FerstVCNTMBB         000100 ..... 1100 . ..... 11001000010   @VX_mp
71495f1ee28SMatheus FerstVCNTMBH         000100 ..... 1101 . ..... 11001000010   @VX_mp
71595f1ee28SMatheus FerstVCNTMBW         000100 ..... 1110 . ..... 11001000010   @VX_mp
71695f1ee28SMatheus FerstVCNTMBD         000100 ..... 1111 . ..... 11001000010   @VX_mp
71795f1ee28SMatheus Ferst
71880eca687SLucas Mateus Castro (alqotel)## Vector Multiply Instruction
71980eca687SLucas Mateus Castro (alqotel)
72080eca687SLucas Mateus Castro (alqotel)VMULESB         000100 ..... ..... ..... 01100001000    @VX
72180eca687SLucas Mateus Castro (alqotel)VMULOSB         000100 ..... ..... ..... 00100001000    @VX
72280eca687SLucas Mateus Castro (alqotel)VMULEUB         000100 ..... ..... ..... 01000001000    @VX
72380eca687SLucas Mateus Castro (alqotel)VMULOUB         000100 ..... ..... ..... 00000001000    @VX
72480eca687SLucas Mateus Castro (alqotel)
72580eca687SLucas Mateus Castro (alqotel)VMULESH         000100 ..... ..... ..... 01101001000    @VX
72680eca687SLucas Mateus Castro (alqotel)VMULOSH         000100 ..... ..... ..... 00101001000    @VX
72780eca687SLucas Mateus Castro (alqotel)VMULEUH         000100 ..... ..... ..... 01001001000    @VX
72880eca687SLucas Mateus Castro (alqotel)VMULOUH         000100 ..... ..... ..... 00001001000    @VX
72980eca687SLucas Mateus Castro (alqotel)
73080eca687SLucas Mateus Castro (alqotel)VMULESW         000100 ..... ..... ..... 01110001000    @VX
73180eca687SLucas Mateus Castro (alqotel)VMULOSW         000100 ..... ..... ..... 00110001000    @VX
73280eca687SLucas Mateus Castro (alqotel)VMULEUW         000100 ..... ..... ..... 01010001000    @VX
73380eca687SLucas Mateus Castro (alqotel)VMULOUW         000100 ..... ..... ..... 00010001000    @VX
73480eca687SLucas Mateus Castro (alqotel)
73580eca687SLucas Mateus Castro (alqotel)VMULESD         000100 ..... ..... ..... 01111001000    @VX
73680eca687SLucas Mateus Castro (alqotel)VMULOSD         000100 ..... ..... ..... 00111001000    @VX
73780eca687SLucas Mateus Castro (alqotel)VMULEUD         000100 ..... ..... ..... 01011001000    @VX
73880eca687SLucas Mateus Castro (alqotel)VMULOUD         000100 ..... ..... ..... 00011001000    @VX
73980eca687SLucas Mateus Castro (alqotel)
740d45da014SLucas Mateus Castro (alqotel)VMULHSW         000100 ..... ..... ..... 01110001001    @VX
741d45da014SLucas Mateus Castro (alqotel)VMULHUW         000100 ..... ..... ..... 01010001001    @VX
742d45da014SLucas Mateus Castro (alqotel)VMULHSD         000100 ..... ..... ..... 01111001001    @VX
743d45da014SLucas Mateus Castro (alqotel)VMULHUD         000100 ..... ..... ..... 01011001001    @VX
744d45da014SLucas Mateus Castro (alqotel)VMULLD          000100 ..... ..... ..... 00111001001    @VX
745d45da014SLucas Mateus Castro (alqotel)
7465476ef1dSVíctor Colombo## Vector Multiply-Sum Instructions
7475476ef1dSVíctor Colombo
748b2dc03a5SMatheus FerstVMSUMUBM        000100 ..... ..... ..... ..... 100100   @VA
749b2dc03a5SMatheus FerstVMSUMMBM        000100 ..... ..... ..... ..... 100101   @VA
7506f52f731SMatheus FerstVMSUMSHM        000100 ..... ..... ..... ..... 101000   @VA
7516f52f731SMatheus FerstVMSUMSHS        000100 ..... ..... ..... ..... 101001   @VA
75289a5a1aeSMatheus FerstVMSUMUHM        000100 ..... ..... ..... ..... 100110   @VA
75389a5a1aeSMatheus FerstVMSUMUHS        000100 ..... ..... ..... ..... 100111   @VA
754b2dc03a5SMatheus Ferst
7555476ef1dSVíctor ColomboVMSUMCUD        000100 ..... ..... ..... ..... 010111   @VA
756536f9876SVíctor ColomboVMSUMUDM        000100 ..... ..... ..... ..... 100011   @VA
7575476ef1dSVíctor Colombo
758dc46167aSLucas Mateus Castro (alqotel)VMLADDUHM       000100 ..... ..... ..... ..... 100010   @VA
759306e4753SLucas Mateus Castro (alqotel)VMHADDSHS       000100 ..... ..... ..... ..... 100000   @VA
760306e4753SLucas Mateus Castro (alqotel)VMHRADDSHS      000100 ..... ..... ..... ..... 100001   @VA
761dc46167aSLucas Mateus Castro (alqotel)
762fb5303ccSMatheus Ferst## Vector String Instructions
763fb5303ccSMatheus Ferst
764fb5303ccSMatheus FerstVSTRIBL         000100 ..... 00000 ..... . 0000001101   @VX_tb_rc
765fb5303ccSMatheus FerstVSTRIBR         000100 ..... 00001 ..... . 0000001101   @VX_tb_rc
766fb5303ccSMatheus FerstVSTRIHL         000100 ..... 00010 ..... . 0000001101   @VX_tb_rc
767fb5303ccSMatheus FerstVSTRIHR         000100 ..... 00011 ..... . 0000001101   @VX_tb_rc
768fb5303ccSMatheus Ferst
76908d512e1SMatheus FerstVCLRLB          000100 ..... ..... ..... 00110001101    @VX
770fb1b5675SMatheus FerstVCLRRB          000100 ..... ..... ..... 00111001101    @VX
77108d512e1SMatheus Ferst
77272b70d5cSLucas Mateus Castro (alqotel)# VSX Load/Store Instructions
77372b70d5cSLucas Mateus Castro (alqotel)
7747eec8cbbSLeandro LuporiLXSD            111001 ..... ..... .............. 10    @DS
7757eec8cbbSLeandro LuporiSTXSD           111101 ..... ..... .............. 10    @DS
77620e2d04eSLeandro LuporiLXSSP           111001 ..... ..... .............. 11    @DS
77720e2d04eSLeandro LuporiSTXSSP          111101 ..... ..... .............. 11    @DS
77872b70d5cSLucas Mateus Castro (alqotel)LXV             111101 ..... ..... ............ . 001   @DQ_TSX
77972b70d5cSLucas Mateus Castro (alqotel)STXV            111101 ..... ..... ............ . 101   @DQ_TSX
78096fa2632SLucas Mateus Castro (alqotel)LXVP            000110 ..... ..... ............ 0000    @DQ_TSXP
78196fa2632SLucas Mateus Castro (alqotel)STXVP           000110 ..... ..... ............ 0001    @DQ_TSXP
78270426b5bSLucas Mateus Castro (alqotel)LXVX            011111 ..... ..... ..... 0100 - 01100 . @X_TSX
78370426b5bSLucas Mateus Castro (alqotel)STXVX           011111 ..... ..... ..... 0110001100 .   @X_TSX
784226ce506SLucas Mateus Castro (alqotel)LXVPX           011111 ..... ..... ..... 0101001101 -   @X_TSXP
785226ce506SLucas Mateus Castro (alqotel)STXVPX          011111 ..... ..... ..... 0111001101 -   @X_TSXP
786604d00c7SLucas CoutinhoLXVRBX          011111 ..... ..... ..... 0000001101 .   @X_TSX
787604d00c7SLucas CoutinhoLXVRHX          011111 ..... ..... ..... 0000101101 .   @X_TSX
788604d00c7SLucas CoutinhoLXVRWX          011111 ..... ..... ..... 0001001101 .   @X_TSX
789604d00c7SLucas CoutinhoLXVRDX          011111 ..... ..... ..... 0001101101 .   @X_TSX
790604d00c7SLucas CoutinhoSTXVRBX         011111 ..... ..... ..... 0010001101 .   @X_TSX
791604d00c7SLucas CoutinhoSTXVRHX         011111 ..... ..... ..... 0010101101 .   @X_TSX
792604d00c7SLucas CoutinhoSTXVRWX         011111 ..... ..... ..... 0011001101 .   @X_TSX
793604d00c7SLucas CoutinhoSTXVRDX         011111 ..... ..... ..... 0011101101 .   @X_TSX
79430dfca8dSBruno Larsen (billionai)
795a5b36805SLucas Mateus Castro (alqotel)## VSX Vector Binary Floating-Point Sign Manipulation Instructions
796a5b36805SLucas Mateus Castro (alqotel)
797a5b36805SLucas Mateus Castro (alqotel)XVABSDP         111100 ..... 00000 ..... 111011001 ..   @XX2
798a5b36805SLucas Mateus Castro (alqotel)XVABSSP         111100 ..... 00000 ..... 110011001 ..   @XX2
799a5b36805SLucas Mateus Castro (alqotel)XVNABSDP        111100 ..... 00000 ..... 111101001 ..   @XX2
800a5b36805SLucas Mateus Castro (alqotel)XVNABSSP        111100 ..... 00000 ..... 110101001 ..   @XX2
801a5b36805SLucas Mateus Castro (alqotel)XVNEGDP         111100 ..... 00000 ..... 111111001 ..   @XX2
802a5b36805SLucas Mateus Castro (alqotel)XVNEGSP         111100 ..... 00000 ..... 110111001 ..   @XX2
80395a89d31SLucas Mateus Castro (alqotel)XVCPSGNDP       111100 ..... ..... ..... 11110000 ...   @XX3
80495a89d31SLucas Mateus Castro (alqotel)XVCPSGNSP       111100 ..... ..... ..... 11010000 ...   @XX3
805a5b36805SLucas Mateus Castro (alqotel)
806e4318ab2SMatheus Ferst## VSX Scalar Multiply-Add Instructions
807e4318ab2SMatheus Ferst
808e4318ab2SMatheus FerstXSMADDADP       111100 ..... ..... ..... 00100001 . . . @XX3
809e4318ab2SMatheus FerstXSMADDMDP       111100 ..... ..... ..... 00101001 . . . @XX3
810e4318ab2SMatheus FerstXSMADDASP       111100 ..... ..... ..... 00000001 . . . @XX3
811e4318ab2SMatheus FerstXSMADDMSP       111100 ..... ..... ..... 00001001 . . . @XX3
8123bb1aed2SMatheus FerstXSMADDQP        111111 ..... ..... ..... 0110000100 .   @X_rc
813e4318ab2SMatheus Ferst
814e4318ab2SMatheus FerstXSMSUBADP       111100 ..... ..... ..... 00110001 . . . @XX3
815e4318ab2SMatheus FerstXSMSUBMDP       111100 ..... ..... ..... 00111001 . . . @XX3
816e4318ab2SMatheus FerstXSMSUBASP       111100 ..... ..... ..... 00010001 . . . @XX3
817e4318ab2SMatheus FerstXSMSUBMSP       111100 ..... ..... ..... 00011001 . . . @XX3
8183bb1aed2SMatheus FerstXSMSUBQP        111111 ..... ..... ..... 0110100100 .   @X_rc
819e4318ab2SMatheus Ferst
820e4318ab2SMatheus FerstXSNMADDASP      111100 ..... ..... ..... 10000001 . . . @XX3
821e4318ab2SMatheus FerstXSNMADDMSP      111100 ..... ..... ..... 10001001 . . . @XX3
822e4318ab2SMatheus FerstXSNMADDADP      111100 ..... ..... ..... 10100001 . . . @XX3
823e4318ab2SMatheus FerstXSNMADDMDP      111100 ..... ..... ..... 10101001 . . . @XX3
8243bb1aed2SMatheus FerstXSNMADDQP       111111 ..... ..... ..... 0111000100 .   @X_rc
825e4318ab2SMatheus Ferst
826e4318ab2SMatheus FerstXSNMSUBASP      111100 ..... ..... ..... 10010001 . . . @XX3
827e4318ab2SMatheus FerstXSNMSUBMSP      111100 ..... ..... ..... 10011001 . . . @XX3
828e4318ab2SMatheus FerstXSNMSUBADP      111100 ..... ..... ..... 10110001 . . . @XX3
829e4318ab2SMatheus FerstXSNMSUBMDP      111100 ..... ..... ..... 10111001 . . . @XX3
8303bb1aed2SMatheus FerstXSNMSUBQP       111111 ..... ..... ..... 0111100100 .   @X_rc
831e4318ab2SMatheus Ferst
83230dfca8dSBruno Larsen (billionai)## VSX splat instruction
83330dfca8dSBruno Larsen (billionai)
8346166fcedSBruno Larsen (billionai)XXSPLTIB        111100 ..... 00 ........ 0101101000 .   @X_imm8
8353909ff1fSVíctor ColomboXXSPLTW         111100 ..... ---.. ..... 010100100 . .  @XX2_uim2
8366e26b85dSMatheus Ferst
8376a94bf19SMatheus Ferst## VSX Permute Instructions
8386a94bf19SMatheus Ferst
8398f5eeee3SMatheus FerstXXEXTRACTUW     111100 ..... - .... ..... 010100101 ..  @XX2_uim4
8408f5eeee3SMatheus FerstXXINSERTW       111100 ..... - .... ..... 010110101 ..  @XX2_uim4
8418f5eeee3SMatheus Ferst
8426a94bf19SMatheus FerstXXPERM          111100 ..... ..... ..... 00011010 ...   @XX3
8436a94bf19SMatheus FerstXXPERMR         111100 ..... ..... ..... 00111010 ...   @XX3
844d31b2c19SMatheus FerstXXPERMDI        111100 ..... ..... ..... 0 .. 01010 ... @XX3_dm
8456a94bf19SMatheus Ferst
84643d55fc2SMatheus FerstXXSEL           111100 ..... ..... ..... ..... 11 ....  @XX4
84743d55fc2SMatheus Ferst
848b090f4f1SMatheus Ferst## VSX Vector Generate PCV
849b090f4f1SMatheus Ferst
850b090f4f1SMatheus FerstXXGENPCVBM      111100 ..... ..... ..... 1110010100 .   @X_imm5
851b090f4f1SMatheus FerstXXGENPCVHM      111100 ..... ..... ..... 1110010101 .   @X_imm5
852b090f4f1SMatheus FerstXXGENPCVWM      111100 ..... ..... ..... 1110110100 .   @X_imm5
853b090f4f1SMatheus FerstXXGENPCVDM      111100 ..... ..... ..... 1110110101 .   @X_imm5
854b090f4f1SMatheus Ferst
8556e26b85dSMatheus Ferst## VSX Vector Load Special Value Instruction
8566e26b85dSMatheus Ferst
8576e26b85dSMatheus FerstLXVKQ           111100 ..... 11111 ..... 0101101000 .   @X_uim5
858c5df1898SVictor Colombo
859c5df1898SVictor Colombo## VSX Comparison Instructions
860c5df1898SVictor Colombo
861c5df1898SVictor ColomboXSMAXCDP        111100 ..... ..... ..... 10000000 ...   @XX3
862c5df1898SVictor ColomboXSMINCDP        111100 ..... ..... ..... 10001000 ...   @XX3
863c5df1898SVictor ColomboXSMAXJDP        111100 ..... ..... ..... 10010000 ...   @XX3
864c5df1898SVictor ColomboXSMINJDP        111100 ..... ..... ..... 10011000 ...   @XX3
8657b8d6e3eSVíctor ColomboXSMAXCQP        111111 ..... ..... ..... 1010100100 -   @X
8667b8d6e3eSVíctor ColomboXSMINCQP        111111 ..... ..... ..... 1011100100 -   @X
8677b8d6e3eSVíctor Colombo
86872d24354SVíctor ColomboXSCMPEQDP       111100 ..... ..... ..... 00000011 ...   @XX3
86972d24354SVíctor ColomboXSCMPGEDP       111100 ..... ..... ..... 00010011 ...   @XX3
87072d24354SVíctor ColomboXSCMPGTDP       111100 ..... ..... ..... 00001011 ...   @XX3
871568e7c4dSVíctor ColomboXSCMPEQQP       111111 ..... ..... ..... 0001000100 -   @X
872568e7c4dSVíctor ColomboXSCMPGEQP       111111 ..... ..... ..... 0011000100 -   @X
873568e7c4dSVíctor ColomboXSCMPGTQP       111111 ..... ..... ..... 0011100100 -   @X
874caf6f9b5SMatheus Ferst
875caf6f9b5SMatheus Ferst## VSX Binary Floating-Point Convert Instructions
876caf6f9b5SMatheus Ferst
877caf6f9b5SMatheus FerstXSCVQPDP        111111 ..... 10100 ..... 1101000100 .   @X_tb_rc
878b3d45205SMatheus FerstXSCVQPUQZ       111111 ..... 00000 ..... 1101000100 -   @X_tb
879b3d45205SMatheus FerstXSCVQPSQZ       111111 ..... 01000 ..... 1101000100 -   @X_tb
88067332e07SMatheus FerstXSCVUQQP        111111 ..... 00011 ..... 1101000100 -   @X_tb
88167332e07SMatheus FerstXSCVSQQP        111111 ..... 01011 ..... 1101000100 -   @X_tb
8823909ff1fSVíctor ColomboXVCVBF16SPN     111100 ..... 10000 ..... 111011011 ..   @XX2
8833909ff1fSVíctor ColomboXVCVSPBF16      111100 ..... 10001 ..... 111011011 ..   @XX2
884cf862beeSMatheus FerstXSCVSPDPN       111100 ..... ----- ..... 101001011 ..   @XX2
8851f26c751SDaniel Henrique Barboza
886c36ab970SMatheus Ferst## VSX Binary Floating-Point Math Support Instructions
887c36ab970SMatheus Ferst
888c36ab970SMatheus FerstXVXSIGSP        111100 ..... 01001 ..... 111011011 ..   @XX2
889a70a5247SLucas Mateus Castro (alqotel)XVTSTDCDP       111100 ..... ..... ..... 1111 . 101 ... @XX2_uim7
890a70a5247SLucas Mateus Castro (alqotel)XVTSTDCSP       111100 ..... ..... ..... 1101 . 101 ... @XX2_uim7
891da3c53baSLucas Mateus Castro (alqotel)XSTSTDCSP       111100 ... ....... ..... 100101010 . -  @XX2_bf_uim xb=%xx_xb
892da3c53baSLucas Mateus Castro (alqotel)XSTSTDCDP       111100 ... ....... ..... 101101010 . -  @XX2_bf_uim xb=%xx_xb
893da3c53baSLucas Mateus Castro (alqotel)XSTSTDCQP       111111 ... ....... xb:5  1011000100 -   @XX2_bf_uim
894c36ab970SMatheus Ferst
895d518239bSVíctor Colombo## VSX Vector Test Least-Significant Bit by Byte Instruction
896d518239bSVíctor Colombo
897d518239bSVíctor ColomboXVTLSBB         111100 ... -- 00010 ..... 111011011 . - @XX2_bf_xb
898d518239bSVíctor Colombo
8991f26c751SDaniel Henrique Barboza### rfebb
9001f26c751SDaniel Henrique Barboza&XL_s           s:uint8_t
9011f26c751SDaniel Henrique Barboza@XL_s           ......-------------- s:1 .......... -   &XL_s
9021f26c751SDaniel Henrique BarbozaRFEBB           010011-------------- .   0010010010 -   @XL_s
903a702c533SLucas Mateus Castro (alqotel)
904a702c533SLucas Mateus Castro (alqotel)## Accumulator Instructions
905a702c533SLucas Mateus Castro (alqotel)
906a702c533SLucas Mateus Castro (alqotel)XXMFACC         011111 ... -- 00000 ----- 0010110001 -   @X_a
907a702c533SLucas Mateus Castro (alqotel)XXMTACC         011111 ... -- 00001 ----- 0010110001 -   @X_a
908a702c533SLucas Mateus Castro (alqotel)XXSETACCZ       011111 ... -- 00011 ----- 0010110001 -   @X_a
90934553153SLucas Mateus Castro (alqotel)
91034553153SLucas Mateus Castro (alqotel)## VSX GER instruction
91134553153SLucas Mateus Castro (alqotel)
91234553153SLucas Mateus Castro (alqotel)XVI4GER8        111011 ... -- ..... ..... 00100011 ..-  @XX3_at xa=%xx_xa
91334553153SLucas Mateus Castro (alqotel)XVI4GER8PP      111011 ... -- ..... ..... 00100010 ..-  @XX3_at xa=%xx_xa
91434553153SLucas Mateus Castro (alqotel)XVI8GER4        111011 ... -- ..... ..... 00000011 ..-  @XX3_at xa=%xx_xa
91534553153SLucas Mateus Castro (alqotel)XVI8GER4PP      111011 ... -- ..... ..... 00000010 ..-  @XX3_at xa=%xx_xa
91634553153SLucas Mateus Castro (alqotel)XVI16GER2       111011 ... -- ..... ..... 01001011 ..-  @XX3_at xa=%xx_xa
91734553153SLucas Mateus Castro (alqotel)XVI16GER2PP     111011 ... -- ..... ..... 01101011 ..-  @XX3_at xa=%xx_xa
91834553153SLucas Mateus Castro (alqotel)XVI8GER4SPP     111011 ... -- ..... ..... 01100011 ..-  @XX3_at xa=%xx_xa
91934553153SLucas Mateus Castro (alqotel)XVI16GER2S      111011 ... -- ..... ..... 00101011 ..-  @XX3_at xa=%xx_xa
92034553153SLucas Mateus Castro (alqotel)XVI16GER2SPP    111011 ... -- ..... ..... 00101010 ..-  @XX3_at xa=%xx_xa
921c29018ccSLucas Mateus Castro (alqotel)
9225724e131SLucas Mateus Castro (alqotel)XVBF16GER2      111011 ... -- ..... ..... 00110011 ..-  @XX3_at xa=%xx_xa
9235724e131SLucas Mateus Castro (alqotel)XVBF16GER2PP    111011 ... -- ..... ..... 00110010 ..-  @XX3_at xa=%xx_xa
9245724e131SLucas Mateus Castro (alqotel)XVBF16GER2PN    111011 ... -- ..... ..... 10110010 ..-  @XX3_at xa=%xx_xa
9255724e131SLucas Mateus Castro (alqotel)XVBF16GER2NP    111011 ... -- ..... ..... 01110010 ..-  @XX3_at xa=%xx_xa
9265724e131SLucas Mateus Castro (alqotel)XVBF16GER2NN    111011 ... -- ..... ..... 11110010 ..-  @XX3_at xa=%xx_xa
9275724e131SLucas Mateus Castro (alqotel)
9282d9cba74SLucas Mateus Castro (alqotel)XVF16GER2       111011 ... -- ..... ..... 00010011 ..-  @XX3_at xa=%xx_xa
9292d9cba74SLucas Mateus Castro (alqotel)XVF16GER2PP     111011 ... -- ..... ..... 00010010 ..-  @XX3_at xa=%xx_xa
9302d9cba74SLucas Mateus Castro (alqotel)XVF16GER2PN     111011 ... -- ..... ..... 10010010 ..-  @XX3_at xa=%xx_xa
9312d9cba74SLucas Mateus Castro (alqotel)XVF16GER2NP     111011 ... -- ..... ..... 01010010 ..-  @XX3_at xa=%xx_xa
9322d9cba74SLucas Mateus Castro (alqotel)XVF16GER2NN     111011 ... -- ..... ..... 11010010 ..-  @XX3_at xa=%xx_xa
9332d9cba74SLucas Mateus Castro (alqotel)
934c29018ccSLucas Mateus Castro (alqotel)XVF32GER        111011 ... -- ..... ..... 00011011 ..-  @XX3_at xa=%xx_xa
935c29018ccSLucas Mateus Castro (alqotel)XVF32GERPP      111011 ... -- ..... ..... 00011010 ..-  @XX3_at xa=%xx_xa
936c29018ccSLucas Mateus Castro (alqotel)XVF32GERPN      111011 ... -- ..... ..... 10011010 ..-  @XX3_at xa=%xx_xa
937c29018ccSLucas Mateus Castro (alqotel)XVF32GERNP      111011 ... -- ..... ..... 01011010 ..-  @XX3_at xa=%xx_xa
938c29018ccSLucas Mateus Castro (alqotel)XVF32GERNN      111011 ... -- ..... ..... 11011010 ..-  @XX3_at xa=%xx_xa
939c29018ccSLucas Mateus Castro (alqotel)
940c29018ccSLucas Mateus Castro (alqotel)XVF64GER        111011 ... -- .... 0 ..... 00111011 ..-  @XX3_at xa=%xx_xa_pair
941c29018ccSLucas Mateus Castro (alqotel)XVF64GERPP      111011 ... -- .... 0 ..... 00111010 ..-  @XX3_at xa=%xx_xa_pair
942c29018ccSLucas Mateus Castro (alqotel)XVF64GERPN      111011 ... -- .... 0 ..... 10111010 ..-  @XX3_at xa=%xx_xa_pair
943c29018ccSLucas Mateus Castro (alqotel)XVF64GERNP      111011 ... -- .... 0 ..... 01111010 ..-  @XX3_at xa=%xx_xa_pair
944c29018ccSLucas Mateus Castro (alqotel)XVF64GERNN      111011 ... -- .... 0 ..... 11111010 ..-  @XX3_at xa=%xx_xa_pair
94561f30261SLucas Mateus Castro (alqotel)
94661f30261SLucas Mateus Castro (alqotel)## Vector Division Instructions
94761f30261SLucas Mateus Castro (alqotel)
94861f30261SLucas Mateus Castro (alqotel)VDIVSW          000100 ..... ..... ..... 00110001011    @VX
94961f30261SLucas Mateus Castro (alqotel)VDIVUW          000100 ..... ..... ..... 00010001011    @VX
95061f30261SLucas Mateus Castro (alqotel)VDIVSD          000100 ..... ..... ..... 00111001011    @VX
95161f30261SLucas Mateus Castro (alqotel)VDIVUD          000100 ..... ..... ..... 00011001011    @VX
9521700f2bfSLucas Mateus Castro (alqotel)VDIVSQ          000100 ..... ..... ..... 00100001011    @VX
9531700f2bfSLucas Mateus Castro (alqotel)VDIVUQ          000100 ..... ..... ..... 00000001011    @VX
9549a1f0866SLucas Mateus Castro (alqotel)
9559a1f0866SLucas Mateus Castro (alqotel)VDIVESW         000100 ..... ..... ..... 01110001011    @VX
9569a1f0866SLucas Mateus Castro (alqotel)VDIVEUW         000100 ..... ..... ..... 01010001011    @VX
957a173ba88SLucas Mateus Castro (alqotel)VDIVESD         000100 ..... ..... ..... 01111001011    @VX
958a173ba88SLucas Mateus Castro (alqotel)VDIVEUD         000100 ..... ..... ..... 01011001011    @VX
959a173ba88SLucas Mateus Castro (alqotel)VDIVESQ         000100 ..... ..... ..... 01100001011    @VX
960a173ba88SLucas Mateus Castro (alqotel)VDIVEUQ         000100 ..... ..... ..... 01000001011    @VX
9615adb27cdSLucas Mateus Castro (alqotel)
9625adb27cdSLucas Mateus Castro (alqotel)VMODSW          000100 ..... ..... ..... 11110001011    @VX
9635adb27cdSLucas Mateus Castro (alqotel)VMODUW          000100 ..... ..... ..... 11010001011    @VX
9645adb27cdSLucas Mateus Castro (alqotel)VMODSD          000100 ..... ..... ..... 11111001011    @VX
9655adb27cdSLucas Mateus Castro (alqotel)VMODUD          000100 ..... ..... ..... 11011001011    @VX
966b80bec3aSLucas Mateus Castro (alqotel)VMODSQ          000100 ..... ..... ..... 11100001011    @VX
967b80bec3aSLucas Mateus Castro (alqotel)VMODUQ          000100 ..... ..... ..... 11000001011    @VX
968016b6e1dSLeandro Lupori
96943507e47SLucas Coutinho## SLB Management Instructions
97043507e47SLucas Coutinho
97143507e47SLucas CoutinhoSLBIE           011111 ----- ----- ..... 0110110010 -   @X_rb
972a1b05c06SLucas CoutinhoSLBIEG          011111 ..... ----- ..... 0111010010 -   @X_tb
97343507e47SLucas Coutinho
9742bfcb7a3SLucas CoutinhoSLBIA           011111 --... ----- ----- 0111110010 -   @X_ih
975491a2553SLucas CoutinhoSLBIAG          011111 ..... ----. ----- 1101010010 -   @X_rs_l
9762bfcb7a3SLucas Coutinho
9770b0ba40fSLucas CoutinhoSLBMTE          011111 ..... ----- ..... 0110010010 -   @X_tb
9780b0ba40fSLucas Coutinho
97974a15384SLucas CoutinhoSLBMFEV         011111 ..... ----- ..... 1101010011 -   @X_tb
98041b60e46SLucas CoutinhoSLBMFEE         011111 ..... ----- ..... 1110010011 -   @X_tb
98174a15384SLucas Coutinho
98226d02c9dSLucas CoutinhoSLBFEE          011111 ..... ----- ..... 1111010011 1   @X_tb
98326d02c9dSLucas Coutinho
984acc130cfSLucas CoutinhoSLBSYNC         011111 ----- ----- ----- 0101010010 -
985acc130cfSLucas Coutinho
986016b6e1dSLeandro Lupori## TLB Management Instructions
987016b6e1dSLeandro Lupori
988016b6e1dSLeandro Lupori&X_tlbie        rb rs ric prs:bool r:bool
989016b6e1dSLeandro Lupori@X_tlbie        ...... rs:5 - ric:2 prs:1 r:1 rb:5 .......... -     &X_tlbie
990016b6e1dSLeandro Lupori
991016b6e1dSLeandro LuporiTLBIE           011111 ..... - .. . . ..... 0100110010 -            @X_tlbie
992016b6e1dSLeandro LuporiTLBIEL          011111 ..... - .. . . ..... 0100010010 -            @X_tlbie
99398f43417SMatheus Ferst
99498f43417SMatheus Ferst# Processor Control Instructions
99598f43417SMatheus Ferst
99698f43417SMatheus FerstMSGCLR          011111 ----- ----- ..... 0011101110 -   @X_rb
99798f43417SMatheus FerstMSGSND          011111 ----- ----- ..... 0011001110 -   @X_rb
998e8e09d7dSMatheus FerstMSGCLRP         011111 ----- ----- ..... 0010101110 -   @X_rb
999e8e09d7dSMatheus FerstMSGSNDP         011111 ----- ----- ..... 0010001110 -   @X_rb
1000b35bf5f2SMatheus FerstMSGSYNC         011111 ----- ----- ----- 1101110110 -
1001