fix encoding of CMN in ARM JIT

It looks like bits 12 through 15 of the ARM encoding for CMN
should be 0s, not 1s, although many processors don't care.
This commit is contained in:
Matthew Flatt 2014-07-04 04:53:59 +01:00
parent 6cf37f82b7
commit f93f52474f

View File

@ -1665,7 +1665,7 @@ _arm_cc_pkh(jit_state_t _jitp, int cc, int o, int rn, int rd, int rm, int im)
#define _CMN(rn,rm) _CC_CMN(ARM_CC_AL,rn,rm)
#define T1_CMN(rn,rm) _jit_W(THUMB_CMN|(_u3(rm)<<3)|_u3(rm))
#define T2_CMN(rn,rm) torrr(THUMB2_CMN,rn,_R15,rm)
#define _CC_CMNI(cc,rn,im) corri(cc,ARM_CMN|ARM_I,rn,_R15,im)
#define _CC_CMNI(cc,rn,im) corri(cc,ARM_CMN|ARM_I,rn,0,im)
#define _CMNI(rn,im) _CC_CMNI(ARM_CC_AL,rn,im)
#define T2_CMNI(rn,im) torri(THUMB2_CMNI,rn,_R15,im)
#define _CC_TST(cc,rn,rm) corrr(cc,ARM_TST,rn,r0,rm)