xref: /openbmc/qemu/target/hppa/insns.decode (revision c51a3f5d)
1#
2# HPPA instruction decode definitions.
3#
4# Copyright (c) 2018 Richard Henderson <rth@twiddle.net>
5#
6# This library is free software; you can redistribute it and/or
7# modify it under the terms of the GNU Lesser General Public
8# License as published by the Free Software Foundation; either
9# version 2 of the License, or (at your option) any later version.
10#
11# This library is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14# Lesser General Public License for more details.
15#
16# You should have received a copy of the GNU Lesser General Public
17# License along with this library; if not, see <http://www.gnu.org/licenses/>.
18#
19
20####
21# Field definitions
22####
23
24%assemble_sr3   13:1 14:2
25%assemble_sr3x  13:1 14:2 !function=expand_sr3x
26
27%assemble_11a   0:s1 4:10            !function=expand_shl3
28%assemble_12    0:s1 2:1 3:10        !function=expand_shl2
29%assemble_12a   0:s1 3:11            !function=expand_shl2
30%assemble_17    0:s1 16:5 2:1 3:10   !function=expand_shl2
31%assemble_22    0:s1 16:10 2:1 3:10  !function=expand_shl2
32
33%assemble_21    0:s1 1:11 14:2 16:5 12:2  !function=expand_shl11
34
35%lowsign_11     0:s1 1:10
36%lowsign_14     0:s1 1:13
37
38%sm_imm         16:10 !function=expand_sm_imm
39
40%rm64           1:1 16:5
41%rt64           6:1 0:5
42%ra64           7:1 21:5
43%rb64           12:1 16:5
44%rc64           8:1 13:3 9:2
45%rc32           13:3 9:2
46
47%im5_0          0:s1 1:4
48%im5_16         16:s1 17:4
49%ma_to_m        5:1 13:1 !function=ma_to_m
50%ma2_to_m       2:2      !function=ma_to_m
51%pos_to_m       0:1      !function=pos_to_m
52%neg_to_m       0:1      !function=neg_to_m
53%a_to_m         2:1      !function=neg_to_m
54
55####
56# Argument set definitions
57####
58
59# All insns that need to form a virtual address should use this set.
60&ldst           t b x disp sp m scale size
61
62&rr_cf          t r cf
63&rrr_cf         t r1 r2 cf
64&rrr_cf_sh      t r1 r2 cf sh
65&rri_cf         t r i cf
66
67&rrb_c_f        disp n c f r1 r2
68&rib_c_f        disp n c f r i
69
70####
71# Format definitions
72####
73
74@rr_cf          ...... r:5 ..... cf:4 ....... t:5       &rr_cf
75@rrr_cf         ...... r2:5 r1:5 cf:4 ....... t:5       &rrr_cf
76@rrr_cf_sh      ...... r2:5 r1:5 cf:4 .... sh:2 . t:5   &rrr_cf_sh
77@rrr_cf_sh0     ...... r2:5 r1:5 cf:4 ....... t:5       &rrr_cf_sh sh=0
78@rri_cf         ...... r:5  t:5  cf:4 . ...........     &rri_cf i=%lowsign_11
79
80@rrb_cf         ...... r2:5 r1:5 c:3 ........... n:1 .  \
81                &rrb_c_f disp=%assemble_12
82@rib_cf         ...... r:5 ..... c:3 ........... n:1 .  \
83                &rib_c_f disp=%assemble_12 i=%im5_16
84
85####
86# System
87####
88
89break           000000 ----- ----- --- 00000000 -----
90
91mtsp            000000 ----- r:5   ... 11000001 00000   sp=%assemble_sr3
92mtctl           000000 t:5   r:5   --- 11000010 00000
93mtsarcm         000000 01011 r:5   --- 11000110 00000
94mtsm            000000 00000 r:5   000 11000011 00000
95
96mfia            000000 ----- 00000 ---   10100101 t:5
97mfsp            000000 ----- 00000 ...   00100101 t:5   sp=%assemble_sr3
98mfctl           000000 r:5   00000- e:1 -01000101 t:5
99
100sync            000000 ----- ----- 000 00100000 00000   # sync, syncdma
101
102ldsid           000000 b:5   ----- sp:2 0 10000101 t:5
103
104rsm             000000 ..........  000 01110011 t:5     i=%sm_imm
105ssm             000000 ..........  000 01101011 t:5     i=%sm_imm
106
107rfi             000000 ----- ----- --- 01100000 00000
108rfi_r           000000 ----- ----- --- 01100101 00000
109
110# These are artificial instructions used by QEMU firmware.
111# They are allocated from the unassigned instruction space.
112halt            1111 1111 1111 1101 1110 1010 1101 0000
113reset           1111 1111 1111 1101 1110 1010 1101 0001
114
115####
116# Memory Management
117####
118
119@addrx          ...... b:5 x:5 .. ........ m:1 .....    \
120                &ldst disp=0 scale=0 t=0 sp=0 size=0
121
122nop             000001 ----- ----- -- 11001010 0 -----         # fdc, disp
123nop_addrx       000001 ..... ..... -- 01001010 . -----  @addrx # fdc, index
124nop_addrx       000001 ..... ..... -- 01001011 . -----  @addrx # fdce
125nop_addrx       000001 ..... ..... --- 0001010 . -----  @addrx # fic 0x0a
126nop_addrx       000001 ..... ..... -- 01001111 . 00000  @addrx # fic 0x4f
127nop_addrx       000001 ..... ..... --- 0001011 . -----  @addrx # fice
128nop_addrx       000001 ..... ..... -- 01001110 . 00000  @addrx # pdc
129
130probe           000001 b:5 ri:5 sp:2 imm:1 100011 write:1 0 t:5
131
132ixtlbx          000001 b:5 r:5 sp:2 0100000 addr:1 0 00000      data=1
133ixtlbx          000001 b:5 r:5 ... 000000 addr:1 0 00000        \
134                sp=%assemble_sr3x data=0
135
136# pcxl and pcxl2 Fast TLB Insert instructions
137ixtlbxf         000001 00000 r:5 00 0 data:1 01000 addr:1 0 00000
138
139pxtlbx          000001 b:5 x:5 sp:2 0100100 local:1 m:1 -----   data=1
140pxtlbx          000001 b:5 x:5 ... 000100 local:1 m:1 -----     \
141                sp=%assemble_sr3x data=0
142
143lpa             000001 b:5 x:5 sp:2 01001101 m:1 t:5    \
144                &ldst disp=0 scale=0 size=0
145
146lci             000001 ----- ----- -- 01001100 0 t:5
147
148####
149# Arith/Log
150####
151
152andcm           000010 ..... ..... .... 000000 - .....  @rrr_cf
153and             000010 ..... ..... .... 001000 - .....  @rrr_cf
154or              000010 ..... ..... .... 001001 - .....  @rrr_cf
155xor             000010 ..... ..... .... 001010 0 .....  @rrr_cf
156uxor            000010 ..... ..... .... 001110 0 .....  @rrr_cf
157ds              000010 ..... ..... .... 010001 0 .....  @rrr_cf
158cmpclr          000010 ..... ..... .... 100010 0 .....  @rrr_cf
159uaddcm          000010 ..... ..... .... 100110 0 .....  @rrr_cf
160uaddcm_tc       000010 ..... ..... .... 100111 0 .....  @rrr_cf
161dcor            000010 ..... 00000 .... 101110 0 .....  @rr_cf
162dcor_i          000010 ..... 00000 .... 101111 0 .....  @rr_cf
163
164add             000010 ..... ..... .... 0110.. - .....  @rrr_cf_sh
165add_l           000010 ..... ..... .... 1010.. 0 .....  @rrr_cf_sh
166add_tsv         000010 ..... ..... .... 1110.. 0 .....  @rrr_cf_sh
167add_c           000010 ..... ..... .... 011100 0 .....  @rrr_cf_sh0
168add_c_tsv       000010 ..... ..... .... 111100 0 .....  @rrr_cf_sh0
169
170sub             000010 ..... ..... .... 010000 - .....  @rrr_cf
171sub_tsv         000010 ..... ..... .... 110000 0 .....  @rrr_cf
172sub_tc          000010 ..... ..... .... 010011 0 .....  @rrr_cf
173sub_tsv_tc      000010 ..... ..... .... 110011 0 .....  @rrr_cf
174sub_b           000010 ..... ..... .... 010100 0 .....  @rrr_cf
175sub_b_tsv       000010 ..... ..... .... 110100 0 .....  @rrr_cf
176
177ldil            001000 t:5 .....................        i=%assemble_21
178addil           001010 r:5 .....................        i=%assemble_21
179ldo             001101 b:5 t:5 -- ..............        i=%lowsign_14
180
181addi            101101 ..... ..... .... 0 ...........   @rri_cf
182addi_tsv        101101 ..... ..... .... 1 ...........   @rri_cf
183addi_tc         101100 ..... ..... .... 0 ...........   @rri_cf
184addi_tc_tsv     101100 ..... ..... .... 1 ...........   @rri_cf
185
186subi            100101 ..... ..... .... 0 ...........   @rri_cf
187subi_tsv        100101 ..... ..... .... 1 ...........   @rri_cf
188
189cmpiclr         100100 ..... ..... .... 0 ...........   @rri_cf
190
191####
192# Index Mem
193####
194
195@ldstx          ...... b:5 x:5 sp:2 scale:1 ....... m:1 t:5     &ldst disp=0
196@ldim5          ...... b:5 ..... sp:2 ......... t:5     \
197                &ldst disp=%im5_16 x=0 scale=0 m=%ma_to_m
198@stim5          ...... b:5 t:5 sp:2 ......... .....     \
199                &ldst disp=%im5_0 x=0 scale=0 m=%ma_to_m
200
201ld              000011 ..... ..... .. . 1 -- 00 size:2 ......   @ldim5
202ld              000011 ..... ..... .. . 0 -- 00 size:2 ......   @ldstx
203st              000011 ..... ..... .. . 1 -- 10 size:2 ......   @stim5
204ldc             000011 ..... ..... .. . 1 -- 0111      ......   @ldim5 size=2
205ldc             000011 ..... ..... .. . 0 -- 0111      ......   @ldstx size=2
206lda             000011 ..... ..... .. . 1 -- 0110      ......   @ldim5 size=2
207lda             000011 ..... ..... .. . 0 -- 0110      ......   @ldstx size=2
208sta             000011 ..... ..... .. . 1 -- 1110      ......   @stim5 size=2
209stby            000011 b:5 r:5 sp:2 a:1 1 -- 1100 m:1   .....   disp=%im5_0
210
211@fldstwx        ...... b:5 x:5   sp:2 scale:1 ....... m:1 ..... \
212                &ldst t=%rt64 disp=0 size=2
213@fldstwi        ...... b:5 ..... sp:2 .       ....... .   ..... \
214                &ldst t=%rt64 disp=%im5_16 m=%ma_to_m x=0 scale=0 size=2
215
216fldw            001001 ..... ..... .. . 0 -- 000 . . .....      @fldstwx
217fldw            001001 ..... ..... .. . 1 -- 000 . . .....      @fldstwi
218fstw            001001 ..... ..... .. . 0 -- 100 . . .....      @fldstwx
219fstw            001001 ..... ..... .. . 1 -- 100 . . .....      @fldstwi
220
221@fldstdx        ...... b:5 x:5   sp:2 scale:1 ....... m:1 t:5 \
222                &ldst disp=0 size=3
223@fldstdi        ...... b:5 ..... sp:2 .       ....... .   t:5 \
224                &ldst disp=%im5_16 m=%ma_to_m x=0 scale=0 size=3
225
226fldd            001011 ..... ..... .. . 0 -- 000 0 . .....      @fldstdx
227fldd            001011 ..... ..... .. . 1 -- 000 0 . .....      @fldstdi
228fstd            001011 ..... ..... .. . 0 -- 100 0 . .....      @fldstdx
229fstd            001011 ..... ..... .. . 1 -- 100 0 . .....      @fldstdi
230
231####
232# Offset Mem
233####
234
235@ldstim14       ...... b:5 t:5 sp:2 ..............      \
236                &ldst disp=%lowsign_14 x=0 scale=0 m=0
237@ldstim14m      ...... b:5 t:5 sp:2 ..............      \
238                &ldst disp=%lowsign_14 x=0 scale=0 m=%neg_to_m
239@ldstim12m      ...... b:5 t:5 sp:2 ..............      \
240                &ldst disp=%assemble_12a x=0 scale=0 m=%pos_to_m
241
242# LDB, LDH, LDW, LDWM
243ld              010000 ..... ..... .. ..............    @ldstim14  size=0
244ld              010001 ..... ..... .. ..............    @ldstim14  size=1
245ld              010010 ..... ..... .. ..............    @ldstim14  size=2
246ld              010011 ..... ..... .. ..............    @ldstim14m size=2
247ld              010111 ..... ..... .. ...........10.    @ldstim12m size=2
248
249# STB, STH, STW, STWM
250st              011000 ..... ..... .. ..............    @ldstim14  size=0
251st              011001 ..... ..... .. ..............    @ldstim14  size=1
252st              011010 ..... ..... .. ..............    @ldstim14  size=2
253st              011011 ..... ..... .. ..............    @ldstim14m size=2
254st              011111 ..... ..... .. ...........10.    @ldstim12m size=2
255
256fldw            010110 b:5 ..... sp:2 ..............    \
257                &ldst disp=%assemble_12a t=%rm64 m=%a_to_m x=0 scale=0 size=2
258fldw            010111 b:5 ..... sp:2 ...........0..    \
259                &ldst disp=%assemble_12a t=%rm64 m=0 x=0 scale=0 size=2
260
261fstw            011110 b:5 ..... sp:2 ..............    \
262                &ldst disp=%assemble_12a t=%rm64 m=%a_to_m x=0 scale=0 size=2
263fstw            011111 b:5 ..... sp:2 ...........0..    \
264                &ldst disp=%assemble_12a t=%rm64 m=0 x=0 scale=0 size=2
265
266fldd            010100 b:5 t:5   sp:2 .......... .. 1 . \
267                &ldst disp=%assemble_11a m=%ma2_to_m x=0 scale=0 size=3
268
269fstd            011100 b:5 t:5   sp:2 .......... .. 1 . \
270                &ldst disp=%assemble_11a m=%ma2_to_m x=0 scale=0 size=3
271
272####
273# Floating-point Multiply Add
274####
275
276&mpyadd         rm1 rm2 ta ra tm
277@mpyadd         ...... rm1:5 rm2:5 ta:5 ra:5 . tm:5     &mpyadd
278
279fmpyadd_f       000110 ..... ..... ..... ..... 0 .....  @mpyadd
280fmpyadd_d       000110 ..... ..... ..... ..... 1 .....  @mpyadd
281fmpysub_f       100110 ..... ..... ..... ..... 0 .....  @mpyadd
282fmpysub_d       100110 ..... ..... ..... ..... 1 .....  @mpyadd
283
284####
285# Conditional Branches
286####
287
288bb_sar          110000 00000 r:5 c:1 10 ........... n:1 .  disp=%assemble_12
289bb_imm          110001 p:5   r:5 c:1 10 ........... n:1 .  disp=%assemble_12
290
291movb            110010 ..... ..... ... ........... . .  @rrb_cf f=0
292movbi           110011 ..... ..... ... ........... . .  @rib_cf f=0
293
294cmpb            100000 ..... ..... ... ........... . .  @rrb_cf f=0
295cmpb            100010 ..... ..... ... ........... . .  @rrb_cf f=1
296cmpbi           100001 ..... ..... ... ........... . .  @rib_cf f=0
297cmpbi           100011 ..... ..... ... ........... . .  @rib_cf f=1
298
299addb            101000 ..... ..... ... ........... . .  @rrb_cf f=0
300addb            101010 ..... ..... ... ........... . .  @rrb_cf f=1
301addbi           101001 ..... ..... ... ........... . .  @rib_cf f=0
302addbi           101011 ..... ..... ... ........... . .  @rib_cf f=1
303
304####
305# Shift, Extract, Deposit
306####
307
308shrpw_sar       110100 r2:5 r1:5 c:3 00 0    00000  t:5
309shrpw_imm       110100 r2:5 r1:5 c:3 01 0    cpos:5 t:5
310
311extrw_sar       110100 r:5  t:5  c:3 10 se:1 00000  clen:5
312extrw_imm       110100 r:5  t:5  c:3 11 se:1 pos:5  clen:5
313
314depw_sar        110101 t:5 r:5   c:3 00 nz:1 00000  clen:5
315depw_imm        110101 t:5 r:5   c:3 01 nz:1 cpos:5 clen:5
316depwi_sar       110101 t:5 ..... c:3 10 nz:1 00000  clen:5      i=%im5_16
317depwi_imm       110101 t:5 ..... c:3 11 nz:1 cpos:5 clen:5      i=%im5_16
318
319####
320# Branch External
321####
322
323&BE             b l n disp sp
324@be             ...... b:5 ..... ... ........... n:1 .  \
325                &BE disp=%assemble_17 sp=%assemble_sr3
326
327be              111000 ..... ..... ... ........... . .  @be l=0
328be              111001 ..... ..... ... ........... . .  @be l=31
329
330####
331# Branch
332####
333
334&BL             l n disp
335@bl             ...... l:5 ..... ... ........... n:1 .  &BL disp=%assemble_17
336
337# B,L and B,L,PUSH
338bl              111010 ..... ..... 000 ........... .   .        @bl
339bl              111010 ..... ..... 100 ........... .   .        @bl
340# B,L (long displacement)
341bl              111010 ..... ..... 101 ........... n:1 .        &BL l=2 \
342                disp=%assemble_22
343b_gate          111010 ..... ..... 001 ........... .   .        @bl
344blr             111010 l:5   x:5   010 00000000000 n:1 0
345bv              111010 b:5   x:5   110 00000000000 n:1 0
346bve             111010 b:5   00000 110 10000000000 n:1 -        l=0
347bve             111010 b:5   00000 111 10000000000 n:1 -        l=2
348
349####
350# FP Fused Multiple-Add
351####
352
353fmpyfadd_f      101110 ..... ..... ... . 0 ... . . neg:1 ..... \
354                rm1=%ra64 rm2=%rb64 ra3=%rc64 t=%rt64
355fmpyfadd_d      101110 rm1:5 rm2:5 ... 0 1 ..0 0 0 neg:1 t:5    ra3=%rc32
356
357####
358# FP operations
359####
360
361&fclass01       r t
362&fclass2        r1 r2 c y
363&fclass3        r1 r2 t
364
365@f0c_0          ...... r:5  00000 ..... 00 000 0 t:5    &fclass01
366@f0c_1          ...... r:5  000.. ..... 01 000 0 t:5    &fclass01
367@f0c_2          ...... r1:5 r2:5 y:3 .. 10 000 . c:5    &fclass2
368@f0c_3          ...... r1:5 r2:5  ..... 11 000 0 t:5    &fclass3
369
370@f0e_f_0        ...... ..... 00000 ... 0 0 000 .. 0 .....  \
371                &fclass01 r=%ra64 t=%rt64
372@f0e_d_0        ...... r:5   00000 ... 0 1 000 00 0 t:5    &fclass01
373
374@f0e_ff_1       ...... ..... 000  ... 0000 010 .. 0 .....  \
375                &fclass01 r=%ra64 t=%rt64
376@f0e_fd_1       ...... ..... 000  ... 0100 010 .0 0 t:5    &fclass01 r=%ra64
377@f0e_df_1       ...... r:5   000  ... 0001 010 0. 0 .....  &fclass01 t=%rt64
378@f0e_dd_1       ...... r:5   000  ... 0101 010 00 0 t:5    &fclass01
379
380@f0e_f_2        ...... ..... ..... y:3 .0 100 .00 c:5      \
381                &fclass2 r1=%ra64 r2=%rb64
382@f0e_d_2        ...... r1:5  r2:5  y:3 01 100 000 c:5      &fclass2
383
384@f0e_f_3        ...... ..... ..... ... .0 110 ..0 .....    \
385                &fclass3 r1=%ra64 r2=%rb64 t=%rt64
386@f0e_d_3        ...... r1:5  r2:5  ... 01 110 000 t:5
387
388# Floating point class 0
389
390# FID.  With r = t = 0, which via fcpy puts 0 into fr0.
391# This is machine/revision = 0, which is reserved for simulator.
392fcpy_f          001100 00000 00000 00000 000000 00000   \
393                &fclass01 r=0 t=0
394
395fcpy_f          001100 ..... ..... 010 00 ...... .....  @f0c_0
396fabs_f          001100 ..... ..... 011 00 ...... .....  @f0c_0
397fsqrt_f         001100 ..... ..... 100 00 ...... .....  @f0c_0
398frnd_f          001100 ..... ..... 101 00 ...... .....  @f0c_0
399fneg_f          001100 ..... ..... 110 00 ...... .....  @f0c_0
400fnegabs_f       001100 ..... ..... 111 00 ...... .....  @f0c_0
401
402fcpy_d          001100 ..... ..... 010 01 ...... .....  @f0c_0
403fabs_d          001100 ..... ..... 011 01 ...... .....  @f0c_0
404fsqrt_d         001100 ..... ..... 100 01 ...... .....  @f0c_0
405frnd_d          001100 ..... ..... 101 01 ...... .....  @f0c_0
406fneg_d          001100 ..... ..... 110 01 ...... .....  @f0c_0
407fnegabs_d       001100 ..... ..... 111 01 ...... .....  @f0c_0
408
409fcpy_f          001110 ..... ..... 010 ........ .....   @f0e_f_0
410fabs_f          001110 ..... ..... 011 ........ .....   @f0e_f_0
411fsqrt_f         001110 ..... ..... 100 ........ .....   @f0e_f_0
412frnd_f          001110 ..... ..... 101 ........ .....   @f0e_f_0
413fneg_f          001110 ..... ..... 110 ........ .....   @f0e_f_0
414fnegabs_f       001110 ..... ..... 111 ........ .....   @f0e_f_0
415
416fcpy_d          001110 ..... ..... 010 ........ .....   @f0e_d_0
417fabs_d          001110 ..... ..... 011 ........ .....   @f0e_d_0
418fsqrt_d         001110 ..... ..... 100 ........ .....   @f0e_d_0
419frnd_d          001110 ..... ..... 101 ........ .....   @f0e_d_0
420fneg_d          001110 ..... ..... 110 ........ .....   @f0e_d_0
421fnegabs_d       001110 ..... ..... 111 ........ .....   @f0e_d_0
422
423# Floating point class 1
424
425# float/float
426fcnv_d_f        001100 ..... ... 000 00 01 ...... ..... @f0c_1
427fcnv_f_d        001100 ..... ... 000 01 00 ...... ..... @f0c_1
428
429fcnv_d_f        001110 ..... ... 000 .......... .....   @f0e_df_1
430fcnv_f_d        001110 ..... ... 000 .......... .....   @f0e_fd_1
431
432# int/float
433fcnv_w_f        001100 ..... ... 001 00 00 ...... ..... @f0c_1
434fcnv_q_f        001100 ..... ... 001 00 01 ...... ..... @f0c_1
435fcnv_w_d        001100 ..... ... 001 01 00 ...... ..... @f0c_1
436fcnv_q_d        001100 ..... ... 001 01 01 ...... ..... @f0c_1
437
438fcnv_w_f        001110 ..... ... 001 .......... .....   @f0e_ff_1
439fcnv_q_f        001110 ..... ... 001 .......... .....   @f0e_df_1
440fcnv_w_d        001110 ..... ... 001 .......... .....   @f0e_fd_1
441fcnv_q_d        001110 ..... ... 001 .......... .....   @f0e_dd_1
442
443# float/int
444fcnv_f_w        001100 ..... ... 010 00 00 ...... ..... @f0c_1
445fcnv_d_w        001100 ..... ... 010 00 01 ...... ..... @f0c_1
446fcnv_f_q        001100 ..... ... 010 01 00 ...... ..... @f0c_1
447fcnv_d_q        001100 ..... ... 010 01 01 ...... ..... @f0c_1
448
449fcnv_f_w        001110 ..... ... 010 .......... .....   @f0e_ff_1
450fcnv_d_w        001110 ..... ... 010 .......... .....   @f0e_df_1
451fcnv_f_q        001110 ..... ... 010 .......... .....   @f0e_fd_1
452fcnv_d_q        001110 ..... ... 010 .......... .....   @f0e_dd_1
453
454# float/int truncate
455fcnv_t_f_w      001100 ..... ... 011 00 00 ...... ..... @f0c_1
456fcnv_t_d_w      001100 ..... ... 011 00 01 ...... ..... @f0c_1
457fcnv_t_f_q      001100 ..... ... 011 01 00 ...... ..... @f0c_1
458fcnv_t_d_q      001100 ..... ... 011 01 01 ...... ..... @f0c_1
459
460fcnv_t_f_w      001110 ..... ... 011 .......... .....   @f0e_ff_1
461fcnv_t_d_w      001110 ..... ... 011 .......... .....   @f0e_df_1
462fcnv_t_f_q      001110 ..... ... 011 .......... .....   @f0e_fd_1
463fcnv_t_d_q      001110 ..... ... 011 .......... .....   @f0e_dd_1
464
465# uint/float
466fcnv_uw_f       001100 ..... ... 101 00 00 ...... ..... @f0c_1
467fcnv_uq_f       001100 ..... ... 101 00 01 ...... ..... @f0c_1
468fcnv_uw_d       001100 ..... ... 101 01 00 ...... ..... @f0c_1
469fcnv_uq_d       001100 ..... ... 101 01 01 ...... ..... @f0c_1
470
471fcnv_uw_f       001110 ..... ... 101 .......... .....   @f0e_ff_1
472fcnv_uq_f       001110 ..... ... 101 .......... .....   @f0e_df_1
473fcnv_uw_d       001110 ..... ... 101 .......... .....   @f0e_fd_1
474fcnv_uq_d       001110 ..... ... 101 .......... .....   @f0e_dd_1
475
476# float/int
477fcnv_f_uw       001100 ..... ... 110 00 00 ...... ..... @f0c_1
478fcnv_d_uw       001100 ..... ... 110 00 01 ...... ..... @f0c_1
479fcnv_f_uq       001100 ..... ... 110 01 00 ...... ..... @f0c_1
480fcnv_d_uq       001100 ..... ... 110 01 01 ...... ..... @f0c_1
481
482fcnv_f_uw       001110 ..... ... 110 .......... .....   @f0e_ff_1
483fcnv_d_uw       001110 ..... ... 110 .......... .....   @f0e_df_1
484fcnv_f_uq       001110 ..... ... 110 .......... .....   @f0e_fd_1
485fcnv_d_uq       001110 ..... ... 110 .......... .....   @f0e_dd_1
486
487# float/int truncate
488fcnv_t_f_uw     001100 ..... ... 111 00 00 ...... ..... @f0c_1
489fcnv_t_d_uw     001100 ..... ... 111 00 01 ...... ..... @f0c_1
490fcnv_t_f_uq     001100 ..... ... 111 01 00 ...... ..... @f0c_1
491fcnv_t_d_uq     001100 ..... ... 111 01 01 ...... ..... @f0c_1
492
493fcnv_t_f_uw     001110 ..... ... 111 .......... .....   @f0e_ff_1
494fcnv_t_d_uw     001110 ..... ... 111 .......... .....   @f0e_df_1
495fcnv_t_f_uq     001110 ..... ... 111 .......... .....   @f0e_fd_1
496fcnv_t_d_uq     001110 ..... ... 111 .......... .....   @f0e_dd_1
497
498# Floating point class 2
499
500ftest           001100 00000 00000 y:3 00 10000 1 c:5
501
502fcmp_f          001100 ..... ..... ... 00 ..... 0 ..... @f0c_2
503fcmp_d          001100 ..... ..... ... 01 ..... 0 ..... @f0c_2
504
505fcmp_f          001110 ..... ..... ... ..... ... .....  @f0e_f_2
506fcmp_d          001110 ..... ..... ... ..... ... .....  @f0e_d_2
507
508# Floating point class 3
509
510fadd_f          001100 ..... ..... 000 00 ...... .....  @f0c_3
511fsub_f          001100 ..... ..... 001 00 ...... .....  @f0c_3
512fmpy_f          001100 ..... ..... 010 00 ...... .....  @f0c_3
513fdiv_f          001100 ..... ..... 011 00 ...... .....  @f0c_3
514
515fadd_d          001100 ..... ..... 000 01 ...... .....  @f0c_3
516fsub_d          001100 ..... ..... 001 01 ...... .....  @f0c_3
517fmpy_d          001100 ..... ..... 010 01 ...... .....  @f0c_3
518fdiv_d          001100 ..... ..... 011 01 ...... .....  @f0c_3
519
520fadd_f          001110 ..... ..... 000 ..... ... .....  @f0e_f_3
521fsub_f          001110 ..... ..... 001 ..... ... .....  @f0e_f_3
522fmpy_f          001110 ..... ..... 010 ..... ... .....  @f0e_f_3
523fdiv_f          001110 ..... ..... 011 ..... ... .....  @f0e_f_3
524
525fadd_d          001110 ..... ..... 000 ..... ... .....  @f0e_d_3
526fsub_d          001110 ..... ..... 001 ..... ... .....  @f0e_d_3
527fmpy_d          001110 ..... ..... 010 ..... ... .....  @f0e_d_3
528fdiv_d          001110 ..... ..... 011 ..... ... .....  @f0e_d_3
529
530xmpyu           001110 ..... ..... 010 .0111 .00 t:5    r1=%ra64 r2=%rb64
531
532# diag
533diag            000101 ----- ----- ---- ---- ---- ----
534