xref: /netbsd-src/external/gpl3/binutils.old/dist/cpu/mep-fmax.cpu (revision 16dce51364ebe8aeafbae46bc5aa167b8115bc45)
1*16dce513Schristos; Toshiba MeP FMAX Coprocessor description.  -*- Scheme -*-
2*16dce513Schristos; Copyright 2011 Free Software Foundation, Inc.
3*16dce513Schristos;
4*16dce513Schristos; Contributed by Red Hat Inc;
5*16dce513Schristos;
6*16dce513Schristos; This file is part of the GNU Binutils.
7*16dce513Schristos;
8*16dce513Schristos; This program is free software; you can redistribute it and/or modify
9*16dce513Schristos; it under the terms of the GNU General Public License as published by
10*16dce513Schristos; the Free Software Foundation; either version 3 of the License, or
11*16dce513Schristos; (at your option) any later version.
12*16dce513Schristos;
13*16dce513Schristos; This program is distributed in the hope that it will be useful,
14*16dce513Schristos; but WITHOUT ANY WARRANTY; without even the implied warranty of
15*16dce513Schristos; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*16dce513Schristos; GNU General Public License for more details.
17*16dce513Schristos;
18*16dce513Schristos; You should have received a copy of the GNU General Public License
19*16dce513Schristos; along with this program; if not, write to the Free Software
20*16dce513Schristos; Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21*16dce513Schristos; MA 02110-1301, USA.
22*16dce513Schristos
23*16dce513Schristos;------------------------------------------------------------------------------
24*16dce513Schristos; MeP-Integrator will redefine the isa pmacros below to allow the bit widths
25*16dce513Schristos; specified below for each ME_MODULE using this coprocessor.
26*16dce513Schristos; This coprocessor requires only the 32 bit insns in the core.
27*16dce513Schristos;------------------------------------------------------------------------------
28*16dce513Schristos; begin-isas
29*16dce513Schristos(define-pmacro fmax-core-isa () (ISA ext_core2))
30*16dce513Schristos(define-pmacro all-fmax-isas () (ISA ext_core2))
31*16dce513Schristos; end-isas
32*16dce513Schristos
33*16dce513Schristos;******************************************************************************
34*16dce513Schristos; ifields
35*16dce513Schristos;------------------------------------------------------------------------------
36*16dce513Schristos; opcodes
37*16dce513Schristos(dnf f-fmax-0-4  "opcode" (all-fmax-isas)  0 4)
38*16dce513Schristos(dnf f-fmax-4-4  "opcode" (all-fmax-isas)  4 4)
39*16dce513Schristos(dnf f-fmax-8-4  "opcode" (all-fmax-isas)  8 4)
40*16dce513Schristos(dnf f-fmax-12-4 "opcode" (all-fmax-isas) 12 4)
41*16dce513Schristos(dnf f-fmax-16-4 "opcode" (all-fmax-isas) 16 4)
42*16dce513Schristos(dnf f-fmax-20-4 "opcode" (all-fmax-isas) 20 4)
43*16dce513Schristos(dnf f-fmax-24-4 "opcode" (all-fmax-isas) 24 4)
44*16dce513Schristos(dnf f-fmax-28-1 "opcode" (all-fmax-isas) 28 1)
45*16dce513Schristos(dnf f-fmax-29-1 "opcode" (all-fmax-isas) 29 1)
46*16dce513Schristos(dnf f-fmax-30-1 "opcode" (all-fmax-isas) 30 1)
47*16dce513Schristos(dnf f-fmax-31-1 "opcode" (all-fmax-isas) 31 1)
48*16dce513Schristos
49*16dce513Schristos;------------------------------------------------------------------------------
50*16dce513Schristos; FR registers
51*16dce513Schristos(define-multi-ifield
52*16dce513Schristos  (name f-fmax-frd)
53*16dce513Schristos  (comment "FRd register")
54*16dce513Schristos  (attrs all-fmax-isas)
55*16dce513Schristos  (mode UINT)
56*16dce513Schristos  (subfields f-fmax-28-1 f-fmax-4-4)
57*16dce513Schristos  (insert (sequence ()
58*16dce513Schristos		    (set (ifield f-fmax-4-4) (and (ifield f-fmax-frd) #xf))
59*16dce513Schristos		    (set (ifield f-fmax-28-1) (srl (ifield f-fmax-frd) 4))))
60*16dce513Schristos  (extract (set (ifield f-fmax-frd)
61*16dce513Schristos		(or (sll (ifield f-fmax-28-1) 4) (ifield f-fmax-4-4))))
62*16dce513Schristos)
63*16dce513Schristos(define-multi-ifield
64*16dce513Schristos  (name f-fmax-frn)
65*16dce513Schristos  (comment "FRn register")
66*16dce513Schristos  (attrs all-fmax-isas)
67*16dce513Schristos  (mode UINT)
68*16dce513Schristos  (subfields f-fmax-29-1 f-fmax-20-4)
69*16dce513Schristos  (insert (sequence ()
70*16dce513Schristos		    (set (ifield f-fmax-20-4) (and (ifield f-fmax-frn) #xf))
71*16dce513Schristos		    (set (ifield f-fmax-29-1) (srl (ifield f-fmax-frn) 4))))
72*16dce513Schristos  (extract (set (ifield f-fmax-frn)
73*16dce513Schristos		(or (sll (ifield f-fmax-29-1) 4) (ifield f-fmax-20-4))))
74*16dce513Schristos)
75*16dce513Schristos(define-multi-ifield
76*16dce513Schristos  (name f-fmax-frm)
77*16dce513Schristos  (comment "FRm register")
78*16dce513Schristos  (attrs all-fmax-isas)
79*16dce513Schristos  (mode UINT)
80*16dce513Schristos  (subfields f-fmax-30-1 f-fmax-24-4)
81*16dce513Schristos  (insert (sequence ()
82*16dce513Schristos		    (set (ifield f-fmax-24-4) (and (ifield f-fmax-frm) #xf))
83*16dce513Schristos		    (set (ifield f-fmax-30-1) (srl (ifield f-fmax-frm) 4))))
84*16dce513Schristos  (extract (set (ifield f-fmax-frm)
85*16dce513Schristos		(or (sll (ifield f-fmax-30-1) 4) (ifield f-fmax-24-4))))
86*16dce513Schristos)
87*16dce513Schristos
88*16dce513Schristos;------------------------------------------------------------------------------
89*16dce513Schristos; Core General registers
90*16dce513Schristos(dnf f-fmax-rm  "opcode" (all-fmax-isas)  8 4)
91*16dce513Schristos
92*16dce513Schristos;------------------------------------------------------------------------------
93*16dce513Schristos; Condition opcodes enum
94*16dce513Schristos(define-normal-insn-enum fmax-cond "condition opcode enum" (all-fmax-isas) FMAX_ f-fmax-8-4
95*16dce513Schristos  ("f"  "u"  "e"  "ue"  "l"  "ul"  "le"  "ule"
96*16dce513Schristos   "fi" "ui" "ei" "uei" "li" "uli" "lei" "ulei")
97*16dce513Schristos)
98*16dce513Schristos
99*16dce513Schristos;******************************************************************************
100*16dce513Schristos; Hardware
101*16dce513Schristos;------------------------------------------------------------------------------
102*16dce513Schristos; FR registers
103*16dce513Schristos
104*16dce513Schristos; Given a coprocessor register number N, expand to a
105*16dce513Schristos; name/index pair: ($frN N)
106*16dce513Schristos(define-pmacro (-fmax-fr-reg-pair n) ((.sym "fr" n) n))
107*16dce513Schristos(define-pmacro (-fmax-cr-reg-pair n) ((.sym "c" n) n))
108*16dce513Schristos
109*16dce513Schristos; NOTE: This exists solely for the purpose of providing the proper register names for this coprocessor.
110*16dce513Schristos; GDB will use the hardware table generated from this declaration. The operands use h-cr
111*16dce513Schristos; from mep-core.cpu so that SID's semantic trace will be consistent between
112*16dce513Schristos; the core and the coprocessor but use parse/print handlers which reference the hardware table
113*16dce513Schristos; generated from this declarations
114*16dce513Schristos(define-hardware
115*16dce513Schristos  (name h-cr-fmax)
116*16dce513Schristos  (comment "Floating point registers")
117*16dce513Schristos  (attrs all-fmax-isas VIRTUAL IS_FLOAT)
118*16dce513Schristos  (type register SF (32))
119*16dce513Schristos  (indices keyword "$"
120*16dce513Schristos	   (.splice (.unsplice (.map -fmax-fr-reg-pair (.iota 32)))
121*16dce513Schristos		    (.unsplice (.map -fmax-cr-reg-pair (.iota 32))))
122*16dce513Schristos  )
123*16dce513Schristos  (get (index) (c-call SF "fmax_fr_get_handler" index))
124*16dce513Schristos  (set (index newval) (c-call VOID "fmax_fr_set_handler" index newval))
125*16dce513Schristos)
126*16dce513Schristos
127*16dce513Schristos;------------------------------------------------------------------------------
128*16dce513Schristos; Control registers
129*16dce513Schristos; NOTE: This exists solely for the purpose of providing the proper register names for this coprocessor.
130*16dce513Schristos; GDB will use the hardware table generated from this declaration. The operands use h-ccr
131*16dce513Schristos; from mep-core.cpu so that SID's semantic trace will be consistent between
132*16dce513Schristos; the core and the coprocessor but use parse/print handlers which reference the hardware table
133*16dce513Schristos; generated from this declarations
134*16dce513Schristos(define-hardware
135*16dce513Schristos  (name h-ccr-fmax)
136*16dce513Schristos  (comment "Coprocessor Identifier and Revision Register")
137*16dce513Schristos  (attrs all-fmax-isas VIRTUAL)
138*16dce513Schristos  (type register USI (16))
139*16dce513Schristos  (indices keyword "$" (
140*16dce513Schristos		       ("cirr"  0) ("fcr0"   0) ("ccr0"   0)
141*16dce513Schristos		       ("cbcr"  1) ("fcr1"   1) ("ccr1"   1)
142*16dce513Schristos		       ("cerr" 15) ("fcr15" 15) ("ccr15" 15)
143*16dce513Schristos                      )
144*16dce513Schristos  )
145*16dce513Schristos  (set (index newval) (c-call VOID "h_ccr_set" index newval))
146*16dce513Schristos  (get (index) (c-call SI "h_ccr_get" index))
147*16dce513Schristos)
148*16dce513Schristos
149*16dce513Schristos;------------------------------------------------------------------------------
150*16dce513Schristos; Misc
151*16dce513Schristos(define-hardware
152*16dce513Schristos  (name h-fmax-compare-i-p)
153*16dce513Schristos  (comment "flag")
154*16dce513Schristos  (attrs all-fmax-isas)
155*16dce513Schristos  (type register USI)
156*16dce513Schristos)
157*16dce513Schristos
158*16dce513Schristos;******************************************************************************
159*16dce513Schristos; Operands
160*16dce513Schristos;------------------------------------------------------------------------------
161*16dce513Schristos; FR Registers
162*16dce513Schristos(define-full-operand fmax-FRd "FRd" (all-fmax-isas (CDATA FMAX_FLOAT)) h-cr SF f-fmax-frd ((parse "fmax_cr") (print "fmax_cr")) () ())
163*16dce513Schristos(define-full-operand fmax-FRn "FRn" (all-fmax-isas (CDATA FMAX_FLOAT)) h-cr SF f-fmax-frn ((parse "fmax_cr") (print "fmax_cr")) () ())
164*16dce513Schristos(define-full-operand fmax-FRm "FRm" (all-fmax-isas (CDATA FMAX_FLOAT)) h-cr SF f-fmax-frm ((parse "fmax_cr") (print "fmax_cr")) () ())
165*16dce513Schristos
166*16dce513Schristos(define-full-operand fmax-FRd-int "FRd as an integer" (all-fmax-isas (CDATA FMAX_INT)) h-cr SI f-fmax-frd ((parse "fmax_cr") (print "fmax_cr")) () ())
167*16dce513Schristos(define-full-operand fmax-FRn-int "FRn as an integer" (all-fmax-isas (CDATA FMAX_INT)) h-cr SI f-fmax-frn ((parse "fmax_cr") (print "fmax_cr")) () ())
168*16dce513Schristos
169*16dce513Schristos;------------------------------------------------------------------------------
170*16dce513Schristos; Control registers
171*16dce513Schristos(define-full-operand fmax-CCRn "CCRn" (all-fmax-isas (CDATA REGNUM)) h-ccr DFLT f-fmax-4-4 ((parse "fmax_ccr") (print "fmax_ccr")) () ())
172*16dce513Schristos
173*16dce513Schristos(dnop fmax-CIRR "CIRR" (all-fmax-isas SEM-ONLY) h-ccr 0)
174*16dce513Schristos(dnop fmax-CBCR "CBCR" (all-fmax-isas SEM-ONLY) h-ccr 1)
175*16dce513Schristos(dnop fmax-CERR "CERR" (all-fmax-isas SEM-ONLY) h-ccr 15)
176*16dce513Schristos
177*16dce513Schristos;------------------------------------------------------------------------------
178*16dce513Schristos; Core General Registers
179*16dce513Schristos(dnop fmax-Rm "Rm" (all-fmax-isas) h-gpr f-fmax-rm)
180*16dce513Schristos
181*16dce513Schristos;------------------------------------------------------------------------------
182*16dce513Schristos; misc
183*16dce513Schristos(dnop fmax-Compare-i-p "flag" (all-fmax-isas SEM-ONLY) h-fmax-compare-i-p f-nil)
184*16dce513Schristos
185*16dce513Schristos;******************************************************************************
186*16dce513Schristos; Instructions
187*16dce513Schristos;------------------------------------------------------------------------------
188*16dce513Schristos; Binary Arithmetic
189*16dce513Schristos(define-pmacro (fmax-binary-arith op opc sem)
190*16dce513Schristos  (dni op
191*16dce513Schristos       (.str op " FRd,FRn,FRm")
192*16dce513Schristos       (all-fmax-isas MAY_TRAP)
193*16dce513Schristos       (.str op " ${fmax-FRd},${fmax-FRn},${fmax-FRm}")
194*16dce513Schristos       (+ (f-fmax-0-4 #xF) fmax-FRd (f-fmax-8-4 opc) (f-fmax-12-4 #x7) (f-fmax-16-4 0)
195*16dce513Schristos	  fmax-FRn fmax-FRm (f-fmax-31-1 0))
196*16dce513Schristos       sem
197*16dce513Schristos       ()
198*16dce513Schristos  )
199*16dce513Schristos)
200*16dce513Schristos
201*16dce513Schristos(fmax-binary-arith fadds #x0 (set fmax-FRd (add fmax-FRn fmax-FRm)))
202*16dce513Schristos(fmax-binary-arith fsubs #x1 (set fmax-FRd (sub fmax-FRn fmax-FRm)))
203*16dce513Schristos(fmax-binary-arith fmuls #x2 (set fmax-FRd (mul fmax-FRn fmax-FRm)))
204*16dce513Schristos(fmax-binary-arith fdivs #x3 (set fmax-FRd (div fmax-FRn fmax-FRm)))
205*16dce513Schristos
206*16dce513Schristos;------------------------------------------------------------------------------
207*16dce513Schristos; Unary Arithmetic
208*16dce513Schristos(define-pmacro (fmax-unary-arith op opc sem)
209*16dce513Schristos  (dni op
210*16dce513Schristos       (.str op " FRd,FRn")
211*16dce513Schristos       (all-fmax-isas MAY_TRAP)
212*16dce513Schristos       (.str op " ${fmax-FRd},${fmax-FRn}")
213*16dce513Schristos       (+ (f-fmax-0-4 #xF) fmax-FRd (f-fmax-8-4 opc) (f-fmax-12-4 #x7)
214*16dce513Schristos	  (f-fmax-16-4 0)  fmax-FRn (f-fmax-24-4 0) (f-fmax-30-1 0) (f-fmax-31-1 0))
215*16dce513Schristos       sem
216*16dce513Schristos       ()
217*16dce513Schristos  )
218*16dce513Schristos)
219*16dce513Schristos
220*16dce513Schristos(fmax-unary-arith fsqrts #x4 (set fmax-FRd (sqrt fmax-FRn)))
221*16dce513Schristos(fmax-unary-arith fabss  #x5 (set fmax-FRd (abs fmax-FRn)))
222*16dce513Schristos(fmax-unary-arith fnegs  #x7 (set fmax-FRd (neg fmax-FRn)))
223*16dce513Schristos(fmax-unary-arith fmovs  #x6 (set fmax-FRd fmax-FRn))
224*16dce513Schristos
225*16dce513Schristos;------------------------------------------------------------------------------
226*16dce513Schristos; Conversions
227*16dce513Schristos(define-pmacro (fmax-conv op opc1 opc2 opnd1 opnd2 sem)
228*16dce513Schristos  (dni op
229*16dce513Schristos       (.str op " FRd,FRn")
230*16dce513Schristos       (all-fmax-isas MAY_TRAP)
231*16dce513Schristos       (.str op " ${" opnd1 "},${" opnd2 "}")
232*16dce513Schristos       (+ (f-fmax-0-4 #xF) opnd1 (f-fmax-8-4 opc1) (f-fmax-12-4 #x7)
233*16dce513Schristos	  (f-fmax-16-4 opc2)  opnd2 (f-fmax-24-4 0) (f-fmax-30-1 0) (f-fmax-31-1 0))
234*16dce513Schristos       sem
235*16dce513Schristos       ()
236*16dce513Schristos  )
237*16dce513Schristos)
238*16dce513Schristos
239*16dce513Schristos(fmax-conv froundws #xC #x0 fmax-FRd-int fmax-FRn     (set fmax-FRd-int (c-call SI "fmax_froundws" fmax-FRn)))
240*16dce513Schristos(fmax-conv ftruncws #xD #x0 fmax-FRd-int fmax-FRn     (set fmax-FRd-int (c-call SI "fmax_ftruncws" fmax-FRn)))
241*16dce513Schristos(fmax-conv fceilws  #xE #x0 fmax-FRd-int fmax-FRn     (set fmax-FRd-int (c-call SI "fmax_fceilws" fmax-FRn)))
242*16dce513Schristos(fmax-conv ffloorws #xF #x0 fmax-FRd-int fmax-FRn     (set fmax-FRd-int (c-call SI "fmax_ffloorws" fmax-FRn)))
243*16dce513Schristos(fmax-conv fcvtws   #x4 #x1 fmax-FRd-int fmax-FRn     (set fmax-FRd-int (c-call SI "fmax_fcvtws" fmax-FRn)))
244*16dce513Schristos(fmax-conv fcvtsw   #x0 #x9 fmax-FRd     fmax-FRn-int (set fmax-FRd (float SF FPCONV-DEFAULT fmax-FRn-int)))
245*16dce513Schristos
246*16dce513Schristos;------------------------------------------------------------------------------
247*16dce513Schristos; Comparisons
248*16dce513Schristos;
249*16dce513Schristos; Comparison with no exceptions
250*16dce513Schristos(define-pmacro (fmax-f-sem x y)  (andif (gt x y) (lt x y))) ; do this to get exception detection
251*16dce513Schristos(define-pmacro (fmax-u-sem x y)  (not (orif (lt x y) (orif (eq x y) (gt x y)))))
252*16dce513Schristos(define-pmacro (fmax-e-sem x y)  (eq x y))
253*16dce513Schristos(define-pmacro (fmax-ue-sem x y) (not (orif (lt x y) (gt x y))))
254*16dce513Schristos(define-pmacro (fmax-l-sem x y)  (lt x y))
255*16dce513Schristos(define-pmacro (fmax-ul-sem x y) (not (orif (gt x y) (eq x y))))
256*16dce513Schristos(define-pmacro (fmax-le-sem x y) (orif (lt x y) (eq x y)))
257*16dce513Schristos(define-pmacro (fmax-ule-sem x y) (not (gt x y)))
258*16dce513Schristos
259*16dce513Schristos(define-pmacro (fmax-comp cond suffix exceptions)
260*16dce513Schristos  (dni (.sym fcmp cond suffix s)
261*16dce513Schristos       (.str "fcmp" cond suffix "s FRn,FRm")
262*16dce513Schristos       ;; Even though the instruction doesn't really trap if EXCEPTIONS
263*16dce513Schristos       ;; is zero, we don't want gcc to put it in a repeat or erepeat
264*16dce513Schristos       ;; block because of the hazards between fcmp instructions and
265*16dce513Schristos       ;; anything that reads CBCR.
266*16dce513Schristos       (all-fmax-isas MAY_TRAP)
267*16dce513Schristos       (.str "fcmp" cond suffix "s ${fmax-FRn},${fmax-FRm}")
268*16dce513Schristos       (+ (f-fmax-0-4 #xF) (f-fmax-4-4 0) (.sym FMAX_ cond suffix) (f-fmax-12-4 #x7)
269*16dce513Schristos	  (f-fmax-16-4 #x2) (f-fmax-28-1 0) fmax-FRn fmax-FRm (f-fmax-31-1 0))
270*16dce513Schristos       (sequence ()
271*16dce513Schristos		 (set fmax-Compare-i-p exceptions)
272*16dce513Schristos		 (set fmax-CBCR ((.sym fmax- cond -sem) fmax-FRn fmax-FRm))
273*16dce513Schristos		 (set fmax-Compare-i-p 0)
274*16dce513Schristos       )
275*16dce513Schristos       ()
276*16dce513Schristos  )
277*16dce513Schristos)
278*16dce513Schristos
279*16dce513Schristos; Comparison with no exceptions
280*16dce513Schristos(fmax-comp f   "" 0)
281*16dce513Schristos(fmax-comp u   "" 0)
282*16dce513Schristos(fmax-comp e   "" 0)
283*16dce513Schristos(fmax-comp ue  "" 0)
284*16dce513Schristos(fmax-comp l   "" 0)
285*16dce513Schristos(fmax-comp ul  "" 0)
286*16dce513Schristos(fmax-comp le  "" 0)
287*16dce513Schristos(fmax-comp ule "" 0)
288*16dce513Schristos
289*16dce513Schristos; Comparison with exceptions
290*16dce513Schristos(fmax-comp f   i 1)
291*16dce513Schristos(fmax-comp u   i 1)
292*16dce513Schristos(fmax-comp e   i 1)
293*16dce513Schristos(fmax-comp ue  i 1)
294*16dce513Schristos(fmax-comp l   i 1)
295*16dce513Schristos(fmax-comp ul  i 1)
296*16dce513Schristos(fmax-comp le  i 1)
297*16dce513Schristos(fmax-comp ule i 1)
298*16dce513Schristos
299*16dce513Schristos;------------------------------------------------------------------------------
300*16dce513Schristos; Move to/from core registers
301*16dce513Schristos(dni cmov-frn-rm
302*16dce513Schristos     "cmov FRn,Rm"
303*16dce513Schristos     (all-fmax-isas (INTRINSIC "cmov1"))
304*16dce513Schristos     "cmov ${fmax-FRd-int},${fmax-Rm}"
305*16dce513Schristos     (+ (f-fmax-0-4 #xF) fmax-FRd-int fmax-Rm (f-fmax-12-4 #x7)
306*16dce513Schristos	(f-fmax-16-4 #xF) (f-fmax-20-4 0) (f-fmax-24-4 0)
307*16dce513Schristos	(f-fmax-29-1 0) (f-fmax-30-1 0) (f-fmax-31-1 0))
308*16dce513Schristos     (set fmax-FRd-int fmax-Rm)
309*16dce513Schristos     ()
310*16dce513Schristos)
311*16dce513Schristos(dni cmov-rm-frn
312*16dce513Schristos     "cmov Rm,FRn"
313*16dce513Schristos     (all-fmax-isas (INTRINSIC "cmov2"))
314*16dce513Schristos     "cmov ${fmax-Rm},${fmax-FRd-int}"
315*16dce513Schristos     (+ (f-fmax-0-4 #xF) fmax-FRd-int fmax-Rm (f-fmax-12-4 #x7)
316*16dce513Schristos	(f-fmax-16-4 #xF) (f-fmax-20-4 0) (f-fmax-24-4 0)
317*16dce513Schristos	(f-fmax-29-1 0) (f-fmax-30-1 0) (f-fmax-31-1 1))
318*16dce513Schristos     (set fmax-Rm fmax-FRd-int)
319*16dce513Schristos     ()
320*16dce513Schristos)
321*16dce513Schristos(dni cmovc-ccrn-rm
322*16dce513Schristos     "cmovc CCRn,Rm"
323*16dce513Schristos     (all-fmax-isas (INTRINSIC "cmovc1"))
324*16dce513Schristos     "cmovc ${fmax-CCRn},${fmax-Rm}"
325*16dce513Schristos     (+ (f-fmax-0-4 #xF) fmax-CCRn fmax-Rm (f-fmax-12-4 #x7)
326*16dce513Schristos	(f-fmax-16-4 #xF) (f-fmax-20-4 0) (f-fmax-24-4 0)
327*16dce513Schristos	(f-fmax-28-1 0) (f-fmax-29-1 0) (f-fmax-30-1 1) (f-fmax-31-1 0))
328*16dce513Schristos     (set fmax-CCRn fmax-Rm)
329*16dce513Schristos     ()
330*16dce513Schristos)
331*16dce513Schristos(dni cmovc-rm-ccrn
332*16dce513Schristos     "cmovc Rm,CCRn"
333*16dce513Schristos     (all-fmax-isas (INTRINSIC "cmovc2"))
334*16dce513Schristos     "cmovc ${fmax-Rm},${fmax-CCRn}"
335*16dce513Schristos     (+ (f-fmax-0-4 #xF) fmax-CCRn fmax-Rm (f-fmax-12-4 #x7)
336*16dce513Schristos	(f-fmax-16-4 #xF) (f-fmax-20-4 0) (f-fmax-24-4 0)
337*16dce513Schristos	(f-fmax-28-1 0) (f-fmax-29-1 0) (f-fmax-30-1 1) (f-fmax-31-1 1))
338*16dce513Schristos     (set fmax-Rm fmax-CCRn)
339*16dce513Schristos     ()
340*16dce513Schristos)
341