[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [openrisc] OR16 ISA





At the moment I am trying to finish the arch manual, make or1ksim to be
compliant with the architecture and make binutils and or1ksim compatible -
so that we have an environment with all the bug fixed. Also something needs
to be done with orX.h files. They are now used by binutils, or1ksim and
gen_or1k_isa. So Jimmy use the _form_ of or16.h that I sent you. Create you
_mnemonics_ similar to or32.h mnemonics (I recommend we loose 32, 16, 8
^^^^^^^^^ it's good to shorten the mnemonics. But 16 and 8 could be reserved
for indenfication. What do you think?

Here is the updated or16.h
(please check it thoroughly.
there are insns added.
h.swapb
h.swaph

h.testi
h.test
h.seti (set bit in rA to 1 pointed by constant)
h.set  (set bit in rA to 1 pointed by rB)
h.clri (clear bit in rA to 0 pointed by constant)
h.clr  (ditto by rB)
h.movhi8sl(shift left)
h.movhi8se(sign extension)
h.notu
h.negs
h.lw
h.lhz
h.lbz
h.sh
h.sb

And in or32.h, it seems that sign/zero extension insns are discarded?
After you check it, please reply ASAP.

Best regards, Jimmy
(See attached file: or16.h)

or16.h