1 %verify "executed" 2 /* 3 * Signed 64-bit integer multiply, "/2addr" version. 4 * 5 * See OP_MUL_LONG for an explanation. 6 * 7 * We get a little tight on registers, so to avoid looking up &fp[A] 8 * again we stuff it into rINST. 9 */ 10 /* mul-long/2addr vA, vB */ 11 mov r9, rINST, lsr #8 @ r9<- A+ 12 mov r1, rINST, lsr #12 @ r1<- B 13 and r9, r9, #15 14 add r1, rFP, r1, lsl #2 @ r1<- &fp[B] 15 add rINST, rFP, r9, lsl #2 @ rINST<- &fp[A] 16 ldmia r1, {r2-r3} @ r2/r3<- vBB/vBB+1 17 ldmia rINST, {r0-r1} @ r0/r1<- vAA/vAA+1 18 mul ip, r2, r1 @ ip<- ZxW 19 umull r9, r10, r2, r0 @ r9/r10 <- ZxX 20 mla r2, r0, r3, ip @ r2<- YxX + (ZxW) 21 mov r0, rINST @ r0<- &fp[A] (free up rINST) 22 FETCH_ADVANCE_INST(1) @ advance rPC, load rINST 23 add r10, r2, r10 @ r10<- r10 + low(ZxW + (YxX)) 24 GET_INST_OPCODE(ip) @ extract opcode from rINST 25 stmia r0, {r9-r10} @ vAA/vAA+1<- r9/r10 26 GOTO_OPCODE(ip) @ jump to next instruction 27