1%default {"instr":"sub x0, xzr, x0", "preinstr":""} 2 /* 3 * Generic 64-bit unary operation. Provide an "instr" line that 4 * specifies an instruction that performs "result = op x0". 5 * 6 * For: neg-long, not-long 7 */ 8 /* unop vA, vB */ 9 lsr w3, wINST, #12 // w3<- B 10 ubfx w4, wINST, #8, #4 // w4<- A 11 GET_VREG_WIDE x0, w3 12 FETCH_ADVANCE_INST 1 // advance rPC, load wINST 13 $preinstr 14 $instr 15 GET_INST_OPCODE ip // extract opcode from wINST 16 SET_VREG_WIDE x0, w4 17 GOTO_OPCODE ip // jump to next instruction 18 /* 10-11 instructions */ 19