edf397038a
This instruction is used to compare two registers and set the flags accordingly. In current architectures this is the same as r0-r1, but for RISCV it will be different. RISC-V does not have condition flags so (until a better solution) we are going to emulate them there. * module/mescc/armv4/as.scm (armv4:instructions): Add r0-cmp-r1 as alias of r0-r1. * module/mescc/i386/as.scm: Same. * module/mescc/x86_64/as.scm: Same. * module/mescc/compile.scm (expr->register): Make use of the new r0-cmp-r1 instruction. |
||
---|---|---|
.. | ||
armv4 | ||
i386 | ||
x86_64 | ||
as.scm | ||
bytevectors.scm | ||
compile.scm | ||
info.scm | ||
M1.scm | ||
mescc.scm | ||
preprocess.scm |