| 1 |
(* |
| 2 |
* sparcPseudoInstr.sig --- Sparc pseudo instructions |
| 3 |
*) |
| 4 |
|
| 5 |
signature SPARC_PSEUDO_INSTR = sig |
| 6 |
structure I : SPARCINSTR |
| 7 |
|
| 8 |
type format1 = |
| 9 |
{r:CellsBasis.cell, i:I.operand, d:CellsBasis.cell} * |
| 10 |
(I.operand -> CellsBasis.cell) -> I.instruction list |
| 11 |
|
| 12 |
type format2 = |
| 13 |
{i:I.operand, d:CellsBasis.cell} * |
| 14 |
(I.operand -> CellsBasis.cell) -> I.instruction list |
| 15 |
(* |
| 16 |
* Signed and unsigned multiplications. |
| 17 |
* These are all 32 bit operations |
| 18 |
*) |
| 19 |
val umul32 : format1 (* unsigned/non-trapping *) |
| 20 |
val smul32 : format1 (* signed/non-trapping *) |
| 21 |
val smul32trap : format1 (* trap on overflow *) |
| 22 |
val udiv32 : format1 (* unsigned/non-trapping *) |
| 23 |
val sdiv32 : format1 (* signed/non-trapping *) |
| 24 |
val sdiv32trap : format1 (* trap on overflow/zero *) |
| 25 |
|
| 26 |
(* convert integer into floating point *) |
| 27 |
val cvti2d : format2 |
| 28 |
val cvti2s : format2 |
| 29 |
val cvti2q : format2 |
| 30 |
|
| 31 |
(* 32-bit overflow detection *) |
| 32 |
val overflowtrap32 : I.instruction list |
| 33 |
|
| 34 |
(* 64-bit overflow detection *) |
| 35 |
val overflowtrap64 : I.instruction list |
| 36 |
|
| 37 |
end |
| 38 |
|