| 1 |
(* |
| 2 |
* WARNING: This file was automatically generated by MDLGen (v3.1) |
| 3 |
* from the machine description file "hppa/hppa.mdl". |
| 4 |
* DO NOT EDIT this file directly |
| 5 |
*) |
| 6 |
|
| 7 |
|
| 8 |
signature HPPAINSTR = |
| 9 |
sig |
| 10 |
structure C : HPPACELLS |
| 11 |
structure CB : CELLS_BASIS (* = CellsBasis *) |
| 12 |
where type CellSet.cellset = CellsBasis.CellSet.cellset |
| 13 |
and type 'a ColorTable.hash_table = 'a CellsBasis.ColorTable.hash_table |
| 14 |
and type 'a HashTable.hash_table = 'a CellsBasis.HashTable.hash_table |
| 15 |
and type SortedCells.sorted_cells = CellsBasis.SortedCells.sorted_cells |
| 16 |
and type cell = CellsBasis.cell |
| 17 |
and type cellColor = CellsBasis.cellColor |
| 18 |
and type cellkind = CellsBasis.cellkind |
| 19 |
and type cellkindDesc = CellsBasis.cellkindDesc |
| 20 |
and type cellkindInfo = CellsBasis.cellkindInfo |
| 21 |
structure T : MLTREE |
| 22 |
structure Constant: CONSTANT |
| 23 |
structure Region : REGION |
| 24 |
sharing Constant = T.Constant |
| 25 |
sharing Region = T.Region |
| 26 |
datatype fmt = |
| 27 |
SGL |
| 28 |
| DBL |
| 29 |
| QUAD |
| 30 |
datatype loadi = |
| 31 |
LDW |
| 32 |
| LDH |
| 33 |
| LDB |
| 34 |
datatype store = |
| 35 |
STW |
| 36 |
| STH |
| 37 |
| STB |
| 38 |
datatype load = |
| 39 |
LDWX |
| 40 |
| LDWX_S |
| 41 |
| LDWX_M |
| 42 |
| LDWX_SM |
| 43 |
| LDHX |
| 44 |
| LDHX_S |
| 45 |
| LDHX_M |
| 46 |
| LDHX_SM |
| 47 |
| LDBX |
| 48 |
| LDBX_M |
| 49 |
datatype cmp = |
| 50 |
COMBT |
| 51 |
| COMBF |
| 52 |
datatype cmpi = |
| 53 |
COMIBT |
| 54 |
| COMIBF |
| 55 |
datatype arith = |
| 56 |
ADD |
| 57 |
| ADDL |
| 58 |
| ADDO |
| 59 |
| SH1ADD |
| 60 |
| SH1ADDL |
| 61 |
| SH1ADDO |
| 62 |
| SH2ADD |
| 63 |
| SH2ADDL |
| 64 |
| SH2ADDO |
| 65 |
| SH3ADD |
| 66 |
| SH3ADDL |
| 67 |
| SH3ADDO |
| 68 |
| SUB |
| 69 |
| SUBO |
| 70 |
| OR |
| 71 |
| XOR |
| 72 |
| AND |
| 73 |
| ANDCM |
| 74 |
datatype arithi = |
| 75 |
ADDI |
| 76 |
| ADDIO |
| 77 |
| ADDIL |
| 78 |
| SUBI |
| 79 |
| SUBIO |
| 80 |
datatype shiftv = |
| 81 |
VEXTRU |
| 82 |
| VEXTRS |
| 83 |
| ZVDEP |
| 84 |
datatype shift = |
| 85 |
EXTRU |
| 86 |
| EXTRS |
| 87 |
| ZDEP |
| 88 |
datatype farith = |
| 89 |
FADD_S |
| 90 |
| FADD_D |
| 91 |
| FADD_Q |
| 92 |
| FSUB_S |
| 93 |
| FSUB_D |
| 94 |
| FSUB_Q |
| 95 |
| FMPY_S |
| 96 |
| FMPY_D |
| 97 |
| FMPY_Q |
| 98 |
| FDIV_S |
| 99 |
| FDIV_D |
| 100 |
| FDIV_Q |
| 101 |
| XMPYU |
| 102 |
datatype funary = |
| 103 |
FCPY_S |
| 104 |
| FCPY_D |
| 105 |
| FCPY_Q |
| 106 |
| FABS_S |
| 107 |
| FABS_D |
| 108 |
| FABS_Q |
| 109 |
| FSQRT_S |
| 110 |
| FSQRT_D |
| 111 |
| FSQRT_Q |
| 112 |
| FRND_S |
| 113 |
| FRND_D |
| 114 |
| FRND_Q |
| 115 |
datatype fcnv = |
| 116 |
FCNVFF_SD |
| 117 |
| FCNVFF_SQ |
| 118 |
| FCNVFF_DS |
| 119 |
| FCNVFF_DQ |
| 120 |
| FCNVFF_QS |
| 121 |
| FCNVFF_QD |
| 122 |
| FCNVXF_S |
| 123 |
| FCNVXF_D |
| 124 |
| FCNVXF_Q |
| 125 |
| FCNVFX_S |
| 126 |
| FCNVFX_D |
| 127 |
| FCNVFX_Q |
| 128 |
| FCNVFXT_S |
| 129 |
| FCNVFXT_D |
| 130 |
| FCNVFXT_Q |
| 131 |
datatype fstore = |
| 132 |
FSTDS |
| 133 |
| FSTWS |
| 134 |
datatype fstorex = |
| 135 |
FSTDX |
| 136 |
| FSTDX_S |
| 137 |
| FSTDX_M |
| 138 |
| FSTDX_SM |
| 139 |
| FSTWX |
| 140 |
| FSTWX_S |
| 141 |
| FSTWX_M |
| 142 |
| FSTWX_SM |
| 143 |
datatype floadx = |
| 144 |
FLDDX |
| 145 |
| FLDDX_S |
| 146 |
| FLDDX_M |
| 147 |
| FLDDX_SM |
| 148 |
| FLDWX |
| 149 |
| FLDWX_S |
| 150 |
| FLDWX_M |
| 151 |
| FLDWX_SM |
| 152 |
datatype fload = |
| 153 |
FLDDS |
| 154 |
| FLDWS |
| 155 |
datatype bcond = |
| 156 |
EQ |
| 157 |
| LT |
| 158 |
| LE |
| 159 |
| LTU |
| 160 |
| LEU |
| 161 |
| NE |
| 162 |
| GE |
| 163 |
| GT |
| 164 |
| GTU |
| 165 |
| GEU |
| 166 |
datatype bitcond = |
| 167 |
BSET |
| 168 |
| BCLR |
| 169 |
datatype fcond = |
| 170 |
False_ |
| 171 |
| False |
| 172 |
| ? |
| 173 |
| !<=> |
| 174 |
| == |
| 175 |
| EQT |
| 176 |
| ?= |
| 177 |
| !<> |
| 178 |
| !?>= |
| 179 |
| < |
| 180 |
| ?< |
| 181 |
| !>= |
| 182 |
| !?> |
| 183 |
| <= |
| 184 |
| ?<= |
| 185 |
| !> |
| 186 |
| !?<= |
| 187 |
| > |
| 188 |
| ?> |
| 189 |
| !<= |
| 190 |
| !?< |
| 191 |
| >= |
| 192 |
| ?>= |
| 193 |
| !< |
| 194 |
| !?= |
| 195 |
| <> |
| 196 |
| != |
| 197 |
| NET |
| 198 |
| !? |
| 199 |
| <=> |
| 200 |
| True_ |
| 201 |
| True |
| 202 |
datatype scond = |
| 203 |
ALL_ZERO |
| 204 |
| LEFTMOST_ONE |
| 205 |
| LEFTMOST_ZERO |
| 206 |
| RIGHTMOST_ONE |
| 207 |
| RIGHTMOST_ZERO |
| 208 |
datatype field_selector = |
| 209 |
F |
| 210 |
| S |
| 211 |
| D |
| 212 |
| R |
| 213 |
| T |
| 214 |
| P |
| 215 |
datatype ea = |
| 216 |
Direct of CellsBasis.cell |
| 217 |
| FDirect of CellsBasis.cell |
| 218 |
| Displace of {base:CellsBasis.cell, disp:T.labexp, mem:Region.region} |
| 219 |
datatype operand = |
| 220 |
REG of CellsBasis.cell |
| 221 |
| IMMED of int |
| 222 |
| LabExp of T.labexp * field_selector |
| 223 |
| HILabExp of T.labexp * field_selector |
| 224 |
| LOLabExp of T.labexp * field_selector |
| 225 |
datatype addressing_mode = |
| 226 |
DISPea of CellsBasis.cell * operand |
| 227 |
| INDXea of CellsBasis.cell * CellsBasis.cell |
| 228 |
| INDXSCALEDea of CellsBasis.cell * CellsBasis.cell |
| 229 |
datatype instr = |
| 230 |
LOADI of {li:loadi, r:CellsBasis.cell, i:operand, t:CellsBasis.cell, mem:Region.region} |
| 231 |
| LOAD of {l:load, r1:CellsBasis.cell, r2:CellsBasis.cell, t:CellsBasis.cell, |
| 232 |
mem:Region.region} |
| 233 |
| STORE of {st:store, b:CellsBasis.cell, d:operand, r:CellsBasis.cell, mem:Region.region} |
| 234 |
| ARITH of {a:arith, r1:CellsBasis.cell, r2:CellsBasis.cell, t:CellsBasis.cell} |
| 235 |
| ARITHI of {ai:arithi, i:operand, r:CellsBasis.cell, t:CellsBasis.cell} |
| 236 |
| COMCLR_LDO of {cc:bcond, r1:CellsBasis.cell, r2:CellsBasis.cell, t1:CellsBasis.cell, |
| 237 |
i:int, b:CellsBasis.cell, t2:CellsBasis.cell} |
| 238 |
| COMICLR_LDO of {cc:bcond, i1:operand, r2:CellsBasis.cell, t1:CellsBasis.cell, |
| 239 |
i2:int, b:CellsBasis.cell, t2:CellsBasis.cell} |
| 240 |
| SHIFTV of {sv:shiftv, r:CellsBasis.cell, len:int, t:CellsBasis.cell} |
| 241 |
| SHIFT of {s:shift, r:CellsBasis.cell, p:int, len:int, t:CellsBasis.cell} |
| 242 |
| BCOND of {cmp:cmp, bc:bcond, r1:CellsBasis.cell, r2:CellsBasis.cell, n:bool, |
| 243 |
nop:bool, t:Label.label, f:Label.label} |
| 244 |
| BCONDI of {cmpi:cmpi, bc:bcond, i:int, r2:CellsBasis.cell, n:bool, nop:bool, |
| 245 |
t:Label.label, f:Label.label} |
| 246 |
| BB of {bc:bitcond, r:CellsBasis.cell, p:int, n:bool, nop:bool, t:Label.label, |
| 247 |
f:Label.label} |
| 248 |
| B of {lab:Label.label, n:bool} |
| 249 |
| LONGJUMP of {lab:Label.label, n:bool, tmp:CellsBasis.cell, tmpLab:Label.label} |
| 250 |
| BE of {b:CellsBasis.cell, d:operand, sr:int, n:bool, labs:Label.label list} |
| 251 |
| BV of {x:CellsBasis.cell, b:CellsBasis.cell, labs:Label.label list, n:bool} |
| 252 |
| BLR of {x:CellsBasis.cell, t:CellsBasis.cell, labs:Label.label list, n:bool} |
| 253 |
| BL of {lab:Label.label, t:CellsBasis.cell, defs:C.cellset, uses:C.cellset, |
| 254 |
cutsTo:Label.label list, mem:Region.region, n:bool} |
| 255 |
| BLE of {d:operand, b:CellsBasis.cell, sr:int, t:CellsBasis.cell, defs:C.cellset, |
| 256 |
uses:C.cellset, cutsTo:Label.label list, mem:Region.region} |
| 257 |
| LDIL of {i:operand, t:CellsBasis.cell} |
| 258 |
| LDO of {i:operand, b:CellsBasis.cell, t:CellsBasis.cell} |
| 259 |
| MTCTL of {r:CellsBasis.cell, t:CellsBasis.cell} |
| 260 |
| FSTORE of {fst:fstore, b:CellsBasis.cell, d:int, r:CellsBasis.cell, mem:Region.region} |
| 261 |
| FSTOREX of {fstx:fstorex, b:CellsBasis.cell, x:CellsBasis.cell, r:CellsBasis.cell, |
| 262 |
mem:Region.region} |
| 263 |
| FLOAD of {fl:fload, b:CellsBasis.cell, d:int, t:CellsBasis.cell, mem:Region.region} |
| 264 |
| FLOADX of {flx:floadx, b:CellsBasis.cell, x:CellsBasis.cell, t:CellsBasis.cell, |
| 265 |
mem:Region.region} |
| 266 |
| FARITH of {fa:farith, r1:CellsBasis.cell, r2:CellsBasis.cell, t:CellsBasis.cell} |
| 267 |
| FUNARY of {fu:funary, f:CellsBasis.cell, t:CellsBasis.cell} |
| 268 |
| FCNV of {fcnv:fcnv, f:CellsBasis.cell, t:CellsBasis.cell} |
| 269 |
| FBRANCH of {cc:fcond, fmt:fmt, f1:CellsBasis.cell, f2:CellsBasis.cell, |
| 270 |
t:Label.label, f:Label.label, n:bool, long:bool} |
| 271 |
| BREAK of {code1:int, code2:int} |
| 272 |
| NOP |
| 273 |
| SOURCE of {} |
| 274 |
| SINK of {} |
| 275 |
| PHI of {} |
| 276 |
and instruction = |
| 277 |
LIVE of {regs: C.cellset, spilled: C.cellset} |
| 278 |
| KILL of {regs: C.cellset, spilled: C.cellset} |
| 279 |
| COPY of {k: CellsBasis.cellkind, |
| 280 |
sz: int, (* in bits *) |
| 281 |
dst: CellsBasis.cell list, |
| 282 |
src: CellsBasis.cell list, |
| 283 |
tmp: ea option (* NONE if |dst| = {src| = 1 *)} |
| 284 |
| ANNOTATION of {i:instruction, a:Annotations.annotation} |
| 285 |
| INSTR of instr |
| 286 |
val loadi : {li:loadi, r:CellsBasis.cell, i:operand, t:CellsBasis.cell, |
| 287 |
mem:Region.region} -> instruction |
| 288 |
val load : {l:load, r1:CellsBasis.cell, r2:CellsBasis.cell, t:CellsBasis.cell, |
| 289 |
mem:Region.region} -> instruction |
| 290 |
val store : {st:store, b:CellsBasis.cell, d:operand, r:CellsBasis.cell, |
| 291 |
mem:Region.region} -> instruction |
| 292 |
val arith : {a:arith, r1:CellsBasis.cell, r2:CellsBasis.cell, t:CellsBasis.cell} -> instruction |
| 293 |
val arithi : {ai:arithi, i:operand, r:CellsBasis.cell, t:CellsBasis.cell} -> instruction |
| 294 |
val comclr_ldo : {cc:bcond, r1:CellsBasis.cell, r2:CellsBasis.cell, t1:CellsBasis.cell, |
| 295 |
i:int, b:CellsBasis.cell, t2:CellsBasis.cell} -> instruction |
| 296 |
val comiclr_ldo : {cc:bcond, i1:operand, r2:CellsBasis.cell, t1:CellsBasis.cell, |
| 297 |
i2:int, b:CellsBasis.cell, t2:CellsBasis.cell} -> instruction |
| 298 |
val shiftv : {sv:shiftv, r:CellsBasis.cell, len:int, t:CellsBasis.cell} -> instruction |
| 299 |
val shift : {s:shift, r:CellsBasis.cell, p:int, len:int, t:CellsBasis.cell} -> instruction |
| 300 |
val bcond : {cmp:cmp, bc:bcond, r1:CellsBasis.cell, r2:CellsBasis.cell, |
| 301 |
n:bool, nop:bool, t:Label.label, f:Label.label} -> instruction |
| 302 |
val bcondi : {cmpi:cmpi, bc:bcond, i:int, r2:CellsBasis.cell, n:bool, nop:bool, |
| 303 |
t:Label.label, f:Label.label} -> instruction |
| 304 |
val bb : {bc:bitcond, r:CellsBasis.cell, p:int, n:bool, nop:bool, t:Label.label, |
| 305 |
f:Label.label} -> instruction |
| 306 |
val b : {lab:Label.label, n:bool} -> instruction |
| 307 |
val longjump : {lab:Label.label, n:bool, tmp:CellsBasis.cell, tmpLab:Label.label} -> instruction |
| 308 |
val be : {b:CellsBasis.cell, d:operand, sr:int, n:bool, labs:Label.label list} -> instruction |
| 309 |
val bv : {x:CellsBasis.cell, b:CellsBasis.cell, labs:Label.label list, n:bool} -> instruction |
| 310 |
val blr : {x:CellsBasis.cell, t:CellsBasis.cell, labs:Label.label list, |
| 311 |
n:bool} -> instruction |
| 312 |
val bl : {lab:Label.label, t:CellsBasis.cell, defs:C.cellset, uses:C.cellset, |
| 313 |
cutsTo:Label.label list, mem:Region.region, n:bool} -> instruction |
| 314 |
val ble : {d:operand, b:CellsBasis.cell, sr:int, t:CellsBasis.cell, defs:C.cellset, |
| 315 |
uses:C.cellset, cutsTo:Label.label list, mem:Region.region} -> instruction |
| 316 |
val ldil : {i:operand, t:CellsBasis.cell} -> instruction |
| 317 |
val ldo : {i:operand, b:CellsBasis.cell, t:CellsBasis.cell} -> instruction |
| 318 |
val mtctl : {r:CellsBasis.cell, t:CellsBasis.cell} -> instruction |
| 319 |
val fstore : {fst:fstore, b:CellsBasis.cell, d:int, r:CellsBasis.cell, mem:Region.region} -> instruction |
| 320 |
val fstorex : {fstx:fstorex, b:CellsBasis.cell, x:CellsBasis.cell, r:CellsBasis.cell, |
| 321 |
mem:Region.region} -> instruction |
| 322 |
val fload : {fl:fload, b:CellsBasis.cell, d:int, t:CellsBasis.cell, mem:Region.region} -> instruction |
| 323 |
val floadx : {flx:floadx, b:CellsBasis.cell, x:CellsBasis.cell, t:CellsBasis.cell, |
| 324 |
mem:Region.region} -> instruction |
| 325 |
val farith : {fa:farith, r1:CellsBasis.cell, r2:CellsBasis.cell, t:CellsBasis.cell} -> instruction |
| 326 |
val funary : {fu:funary, f:CellsBasis.cell, t:CellsBasis.cell} -> instruction |
| 327 |
val fcnv : {fcnv:fcnv, f:CellsBasis.cell, t:CellsBasis.cell} -> instruction |
| 328 |
val fbranch : {cc:fcond, fmt:fmt, f1:CellsBasis.cell, f2:CellsBasis.cell, |
| 329 |
t:Label.label, f:Label.label, n:bool, long:bool} -> instruction |
| 330 |
val break : {code1:int, code2:int} -> instruction |
| 331 |
val nop : instruction |
| 332 |
val source : {} -> instruction |
| 333 |
val sink : {} -> instruction |
| 334 |
val phi : {} -> instruction |
| 335 |
end |
| 336 |
|
| 337 |
functor HppaInstr(T: MLTREE |
| 338 |
) : HPPAINSTR = |
| 339 |
struct |
| 340 |
structure C = HppaCells |
| 341 |
structure CB = CellsBasis |
| 342 |
structure T = T |
| 343 |
structure Region = T.Region |
| 344 |
structure Constant = T.Constant |
| 345 |
datatype fmt = |
| 346 |
SGL |
| 347 |
| DBL |
| 348 |
| QUAD |
| 349 |
datatype loadi = |
| 350 |
LDW |
| 351 |
| LDH |
| 352 |
| LDB |
| 353 |
datatype store = |
| 354 |
STW |
| 355 |
| STH |
| 356 |
| STB |
| 357 |
datatype load = |
| 358 |
LDWX |
| 359 |
| LDWX_S |
| 360 |
| LDWX_M |
| 361 |
| LDWX_SM |
| 362 |
| LDHX |
| 363 |
| LDHX_S |
| 364 |
| LDHX_M |
| 365 |
| LDHX_SM |
| 366 |
| LDBX |
| 367 |
| LDBX_M |
| 368 |
datatype cmp = |
| 369 |
COMBT |
| 370 |
| COMBF |
| 371 |
datatype cmpi = |
| 372 |
COMIBT |
| 373 |
| COMIBF |
| 374 |
datatype arith = |
| 375 |
ADD |
| 376 |
| ADDL |
| 377 |
| ADDO |
| 378 |
| SH1ADD |
| 379 |
| SH1ADDL |
| 380 |
| SH1ADDO |
| 381 |
| SH2ADD |
| 382 |
| SH2ADDL |
| 383 |
| SH2ADDO |
| 384 |
| SH3ADD |
| 385 |
| SH3ADDL |
| 386 |
| SH3ADDO |
| 387 |
| SUB |
| 388 |
| SUBO |
| 389 |
| OR |
| 390 |
| XOR |
| 391 |
| AND |
| 392 |
| ANDCM |
| 393 |
datatype arithi = |
| 394 |
ADDI |
| 395 |
| ADDIO |
| 396 |
| ADDIL |
| 397 |
| SUBI |
| 398 |
| SUBIO |
| 399 |
datatype shiftv = |
| 400 |
VEXTRU |
| 401 |
| VEXTRS |
| 402 |
| ZVDEP |
| 403 |
datatype shift = |
| 404 |
EXTRU |
| 405 |
| EXTRS |
| 406 |
| ZDEP |
| 407 |
datatype farith = |
| 408 |
FADD_S |
| 409 |
| FADD_D |
| 410 |
| FADD_Q |
| 411 |
| FSUB_S |
| 412 |
| FSUB_D |
| 413 |
| FSUB_Q |
| 414 |
| FMPY_S |
| 415 |
| FMPY_D |
| 416 |
| FMPY_Q |
| 417 |
| FDIV_S |
| 418 |
| FDIV_D |
| 419 |
| FDIV_Q |
| 420 |
| XMPYU |
| 421 |
datatype funary = |
| 422 |
FCPY_S |
| 423 |
| FCPY_D |
| 424 |
| FCPY_Q |
| 425 |
| FABS_S |
| 426 |
| FABS_D |
| 427 |
| FABS_Q |
| 428 |
| FSQRT_S |
| 429 |
| FSQRT_D |
| 430 |
| FSQRT_Q |
| 431 |
| FRND_S |
| 432 |
| FRND_D |
| 433 |
| FRND_Q |
| 434 |
datatype fcnv = |
| 435 |
FCNVFF_SD |
| 436 |
| FCNVFF_SQ |
| 437 |
| FCNVFF_DS |
| 438 |
| FCNVFF_DQ |
| 439 |
| FCNVFF_QS |
| 440 |
| FCNVFF_QD |
| 441 |
| FCNVXF_S |
| 442 |
| FCNVXF_D |
| 443 |
| FCNVXF_Q |
| 444 |
| FCNVFX_S |
| 445 |
| FCNVFX_D |
| 446 |
| FCNVFX_Q |
| 447 |
| FCNVFXT_S |
| 448 |
| FCNVFXT_D |
| 449 |
| FCNVFXT_Q |
| 450 |
datatype fstore = |
| 451 |
FSTDS |
| 452 |
| FSTWS |
| 453 |
datatype fstorex = |
| 454 |
FSTDX |
| 455 |
| FSTDX_S |
| 456 |
| FSTDX_M |
| 457 |
| FSTDX_SM |
| 458 |
| FSTWX |
| 459 |
| FSTWX_S |
| 460 |
| FSTWX_M |
| 461 |
| FSTWX_SM |
| 462 |
datatype floadx = |
| 463 |
FLDDX |
| 464 |
| FLDDX_S |
| 465 |
| FLDDX_M |
| 466 |
| FLDDX_SM |
| 467 |
| FLDWX |
| 468 |
| FLDWX_S |
| 469 |
| FLDWX_M |
| 470 |
| FLDWX_SM |
| 471 |
datatype fload = |
| 472 |
FLDDS |
| 473 |
| FLDWS |
| 474 |
datatype bcond = |
| 475 |
EQ |
| 476 |
| LT |
| 477 |
| LE |
| 478 |
| LTU |
| 479 |
| LEU |
| 480 |
| NE |
| 481 |
| GE |
| 482 |
| GT |
| 483 |
| GTU |
| 484 |
| GEU |
| 485 |
datatype bitcond = |
| 486 |
BSET |
| 487 |
| BCLR |
| 488 |
datatype fcond = |
| 489 |
False_ |
| 490 |
| False |
| 491 |
| ? |
| 492 |
| !<=> |
| 493 |
| == |
| 494 |
| EQT |
| 495 |
| ?= |
| 496 |
| !<> |
| 497 |
| !?>= |
| 498 |
| < |
| 499 |
| ?< |
| 500 |
| !>= |
| 501 |
| !?> |
| 502 |
| <= |
| 503 |
| ?<= |
| 504 |
| !> |
| 505 |
| !?<= |
| 506 |
| > |
| 507 |
| ?> |
| 508 |
| !<= |
| 509 |
| !?< |
| 510 |
| >= |
| 511 |
| ?>= |
| 512 |
| !< |
| 513 |
| !?= |
| 514 |
| <> |
| 515 |
| != |
| 516 |
| NET |
| 517 |
| !? |
| 518 |
| <=> |
| 519 |
| True_ |
| 520 |
| True |
| 521 |
datatype scond = |
| 522 |
ALL_ZERO |
| 523 |
| LEFTMOST_ONE |
| 524 |
| LEFTMOST_ZERO |
| 525 |
| RIGHTMOST_ONE |
| 526 |
| RIGHTMOST_ZERO |
| 527 |
datatype field_selector = |
| 528 |
F |
| 529 |
| S |
| 530 |
| D |
| 531 |
| R |
| 532 |
| T |
| 533 |
| P |
| 534 |
datatype ea = |
| 535 |
Direct of CellsBasis.cell |
| 536 |
| FDirect of CellsBasis.cell |
| 537 |
| Displace of {base:CellsBasis.cell, disp:T.labexp, mem:Region.region} |
| 538 |
datatype operand = |
| 539 |
REG of CellsBasis.cell |
| 540 |
| IMMED of int |
| 541 |
| LabExp of T.labexp * field_selector |
| 542 |
| HILabExp of T.labexp * field_selector |
| 543 |
| LOLabExp of T.labexp * field_selector |
| 544 |
datatype addressing_mode = |
| 545 |
DISPea of CellsBasis.cell * operand |
| 546 |
| INDXea of CellsBasis.cell * CellsBasis.cell |
| 547 |
| INDXSCALEDea of CellsBasis.cell * CellsBasis.cell |
| 548 |
datatype instr = |
| 549 |
LOADI of {li:loadi, r:CellsBasis.cell, i:operand, t:CellsBasis.cell, mem:Region.region} |
| 550 |
| LOAD of {l:load, r1:CellsBasis.cell, r2:CellsBasis.cell, t:CellsBasis.cell, |
| 551 |
mem:Region.region} |
| 552 |
| STORE of {st:store, b:CellsBasis.cell, d:operand, r:CellsBasis.cell, mem:Region.region} |
| 553 |
| ARITH of {a:arith, r1:CellsBasis.cell, r2:CellsBasis.cell, t:CellsBasis.cell} |
| 554 |
| ARITHI of {ai:arithi, i:operand, r:CellsBasis.cell, t:CellsBasis.cell} |
| 555 |
| COMCLR_LDO of {cc:bcond, r1:CellsBasis.cell, r2:CellsBasis.cell, t1:CellsBasis.cell, |
| 556 |
i:int, b:CellsBasis.cell, t2:CellsBasis.cell} |
| 557 |
| COMICLR_LDO of {cc:bcond, i1:operand, r2:CellsBasis.cell, t1:CellsBasis.cell, |
| 558 |
i2:int, b:CellsBasis.cell, t2:CellsBasis.cell} |
| 559 |
| SHIFTV of {sv:shiftv, r:CellsBasis.cell, len:int, t:CellsBasis.cell} |
| 560 |
| SHIFT of {s:shift, r:CellsBasis.cell, p:int, len:int, t:CellsBasis.cell} |
| 561 |
| BCOND of {cmp:cmp, bc:bcond, r1:CellsBasis.cell, r2:CellsBasis.cell, n:bool, |
| 562 |
nop:bool, t:Label.label, f:Label.label} |
| 563 |
| BCONDI of {cmpi:cmpi, bc:bcond, i:int, r2:CellsBasis.cell, n:bool, nop:bool, |
| 564 |
t:Label.label, f:Label.label} |
| 565 |
| BB of {bc:bitcond, r:CellsBasis.cell, p:int, n:bool, nop:bool, t:Label.label, |
| 566 |
f:Label.label} |
| 567 |
| B of {lab:Label.label, n:bool} |
| 568 |
| LONGJUMP of {lab:Label.label, n:bool, tmp:CellsBasis.cell, tmpLab:Label.label} |
| 569 |
| BE of {b:CellsBasis.cell, d:operand, sr:int, n:bool, labs:Label.label list} |
| 570 |
| BV of {x:CellsBasis.cell, b:CellsBasis.cell, labs:Label.label list, n:bool} |
| 571 |
| BLR of {x:CellsBasis.cell, t:CellsBasis.cell, labs:Label.label list, n:bool} |
| 572 |
| BL of {lab:Label.label, t:CellsBasis.cell, defs:C.cellset, uses:C.cellset, |
| 573 |
cutsTo:Label.label list, mem:Region.region, n:bool} |
| 574 |
| BLE of {d:operand, b:CellsBasis.cell, sr:int, t:CellsBasis.cell, defs:C.cellset, |
| 575 |
uses:C.cellset, cutsTo:Label.label list, mem:Region.region} |
| 576 |
| LDIL of {i:operand, t:CellsBasis.cell} |
| 577 |
| LDO of {i:operand, b:CellsBasis.cell, t:CellsBasis.cell} |
| 578 |
| MTCTL of {r:CellsBasis.cell, t:CellsBasis.cell} |
| 579 |
| FSTORE of {fst:fstore, b:CellsBasis.cell, d:int, r:CellsBasis.cell, mem:Region.region} |
| 580 |
| FSTOREX of {fstx:fstorex, b:CellsBasis.cell, x:CellsBasis.cell, r:CellsBasis.cell, |
| 581 |
mem:Region.region} |
| 582 |
| FLOAD of {fl:fload, b:CellsBasis.cell, d:int, t:CellsBasis.cell, mem:Region.region} |
| 583 |
| FLOADX of {flx:floadx, b:CellsBasis.cell, x:CellsBasis.cell, t:CellsBasis.cell, |
| 584 |
mem:Region.region} |
| 585 |
| FARITH of {fa:farith, r1:CellsBasis.cell, r2:CellsBasis.cell, t:CellsBasis.cell} |
| 586 |
| FUNARY of {fu:funary, f:CellsBasis.cell, t:CellsBasis.cell} |
| 587 |
| FCNV of {fcnv:fcnv, f:CellsBasis.cell, t:CellsBasis.cell} |
| 588 |
| FBRANCH of {cc:fcond, fmt:fmt, f1:CellsBasis.cell, f2:CellsBasis.cell, |
| 589 |
t:Label.label, f:Label.label, n:bool, long:bool} |
| 590 |
| BREAK of {code1:int, code2:int} |
| 591 |
| NOP |
| 592 |
| SOURCE of {} |
| 593 |
| SINK of {} |
| 594 |
| PHI of {} |
| 595 |
and instruction = |
| 596 |
LIVE of {regs: C.cellset, spilled: C.cellset} |
| 597 |
| KILL of {regs: C.cellset, spilled: C.cellset} |
| 598 |
| COPY of {k: CellsBasis.cellkind, |
| 599 |
sz: int, (* in bits *) |
| 600 |
dst: CellsBasis.cell list, |
| 601 |
src: CellsBasis.cell list, |
| 602 |
tmp: ea option (* NONE if |dst| = {src| = 1 *)} |
| 603 |
| ANNOTATION of {i:instruction, a:Annotations.annotation} |
| 604 |
| INSTR of instr |
| 605 |
val loadi = INSTR o LOADI |
| 606 |
and load = INSTR o LOAD |
| 607 |
and store = INSTR o STORE |
| 608 |
and arith = INSTR o ARITH |
| 609 |
and arithi = INSTR o ARITHI |
| 610 |
and comclr_ldo = INSTR o COMCLR_LDO |
| 611 |
and comiclr_ldo = INSTR o COMICLR_LDO |
| 612 |
and shiftv = INSTR o SHIFTV |
| 613 |
and shift = INSTR o SHIFT |
| 614 |
and bcond = INSTR o BCOND |
| 615 |
and bcondi = INSTR o BCONDI |
| 616 |
and bb = INSTR o BB |
| 617 |
and b = INSTR o B |
| 618 |
and longjump = INSTR o LONGJUMP |
| 619 |
and be = INSTR o BE |
| 620 |
and bv = INSTR o BV |
| 621 |
and blr = INSTR o BLR |
| 622 |
and bl = INSTR o BL |
| 623 |
and ble = INSTR o BLE |
| 624 |
and ldil = INSTR o LDIL |
| 625 |
and ldo = INSTR o LDO |
| 626 |
and mtctl = INSTR o MTCTL |
| 627 |
and fstore = INSTR o FSTORE |
| 628 |
and fstorex = INSTR o FSTOREX |
| 629 |
and fload = INSTR o FLOAD |
| 630 |
and floadx = INSTR o FLOADX |
| 631 |
and farith = INSTR o FARITH |
| 632 |
and funary = INSTR o FUNARY |
| 633 |
and fcnv = INSTR o FCNV |
| 634 |
and fbranch = INSTR o FBRANCH |
| 635 |
and break = INSTR o BREAK |
| 636 |
and nop = INSTR NOP |
| 637 |
and source = INSTR o SOURCE |
| 638 |
and sink = INSTR o SINK |
| 639 |
and phi = INSTR o PHI |
| 640 |
end |
| 641 |
|