First, untested version for mips(el)