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 r1, rINST, lsr #12 @ r1<- B 12 ubfx r9, rINST, #8, #4 @ r9<- A 13 add r1, rFP, r1, lsl #2 @ r1<- &fp[B] 14 add rINST, rFP, r9, lsl #2 @ rINST<- &fp[A] 15 ldmia r1, {r2-r3} @ r2/r3<- vBB/vBB+1 16 ldmia rINST, {r0-r1} @ r0/r1<- vAA/vAA+1 17 mul ip, r2, r1 @ ip<- ZxW 18 umull r9, r10, r2, r0 @ r9/r10 <- ZxX 19 mla r2, r0, r3, ip @ r2<- YxX + (ZxW) 20 mov r0, rINST @ r0<- &fp[A] (free up rINST) 21 FETCH_ADVANCE_INST(1) @ advance rPC, load rINST 22 add r10, r2, r10 @ r10<- r10 + low(ZxW + (YxX)) 23 GET_INST_OPCODE(ip) @ extract opcode from rINST 24 stmia r0, {r9-r10} @ vAA/vAA+1<- r9/r10 25 GOTO_OPCODE(ip) @ jump to next instruction 26