Alien-LibJIT
view release on metacpan or search on metacpan
libjit/jit/jit-gen-arm.h view on Meta::CPAN
arm_inst_add((inst), arm_execute | \
(((unsigned int)ARM_MOV) << 21) | \
(((unsigned int)(dreg)) << 12) | \
(((unsigned int)(opc)) << 5) | \
(((unsigned int)(imm)) << 7) | \
((unsigned int)(sreg))); \
} while (0)
/*
* Perform a multiplication instruction. Note: ARM instruction rules
* say that dreg should not be the same as sreg2, so we swap the order
* of the arguments if that situation occurs. We assume that sreg1
* and sreg2 are distinct registers.
*/
#define arm_mul_reg_reg(inst,dreg,sreg1,sreg2) \
do { \
if((dreg) != (sreg2)) \
{ \
arm_inst_add((inst), arm_prefix(0x00000090) | \
(((unsigned int)(dreg)) << 16) | \
(((unsigned int)(sreg1)) << 8) | \
( run in 1.125 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )