blob: ca888ad3fb8cac5f64d188811a9205ae52af880b [file] [log] [blame]
Douglas Leung200f0402016-02-25 20:05:47 -08001%default {"preinstr":"", "result0":"a0", "result1":"a1"}
2 /*
3 * Generic 32bit-to-64bit unary operation. Provide an "instr" line
Alexey Frunze84603bf2016-10-21 19:54:43 -07004 * that specifies an instruction that performs "result0/result1 = op a0".
Douglas Leung200f0402016-02-25 20:05:47 -08005 *
6 * For: int-to-long
7 */
8 /* unop vA, vB */
9 GET_OPA4(rOBJ) # rOBJ <- A+
10 GET_OPB(a3) # a3 <- B
11 GET_VREG(a0, a3) # a0 <- vB
12 FETCH_ADVANCE_INST(1) # advance rPC, load rINST
13 $preinstr # optional op
14 $instr # result <- op, a0-a3 changed
15 GET_INST_OPCODE(t0) # extract opcode from rINST
Alexey Frunze84603bf2016-10-21 19:54:43 -070016 SET_VREG64_GOTO($result0, $result1, rOBJ, t0) # vA/vA+1 <- a0/a1