| 16 |
call_format, sethi_format }; |
call_format, sethi_format }; |
| 17 |
enum instr { add, addx, addcc, addxcc, |
enum instr { add, addx, addcc, addxcc, |
| 18 |
sub, subx, subcc, subxcc, |
sub, subx, subcc, subxcc, |
| 19 |
|
|
| 20 |
and, andcc, |
and, andcc, |
| 21 |
andn, andncc, |
andn, andncc, |
| 22 |
or, orcc, |
or, orcc, |
| 23 |
orn, orncc, |
orn, orncc, |
| 24 |
xor, xorcc, |
xor, xorcc, |
| 25 |
xnor, xnorcc, |
xnor, xnorcc, |
| 26 |
|
|
| 27 |
sll, srl, sra, |
sll, srl, sra, |
| 28 |
|
|
| 29 |
jmpl, save, restore, |
jmpl, save, restore, |
| 30 |
|
|
| 31 |
ld, ldub, lduh, ldd, ldsb, ldsh, |
ld, ldub, lduh, ldd, ldsb, ldsh, |
| 32 |
st, stb, sth, std, ldstub, swap, |
st, stb, sth, std, ldstub, swap, |
| 33 |
|
|
| 34 |
bn, be, ble, bl, |
bn, be, ble, bl, |
| 35 |
bleu, bcs, bneg, bvs, |
bleu, bcs, bneg, bvs, |
| 36 |
ba, bne, bg, bge, |
ba, bne, bg, bge, |
| 37 |
bgu, bcc, bpos, bvc, |
bgu, bcc, bpos, bvc, |
| 38 |
|
|
| 39 |
sethi, call |
sethi, call |
| 40 |
}; |
}; |
| 41 |
enum igroup { arlog, mem, branch, other }; |
enum igroup { arith, logic, shift, |
| 42 |
|
control, mem, branch, other }; |
| 43 |
|
|
| 44 |
format format; |
format format; |
| 45 |
instr instr; |
instr instr; |