blob: 6862e245309782007fcdff23dc759c89a69ab03f [file] [log] [blame]
Douglas Leung200f0402016-02-25 20:05:47 -08001 /*
Alexey Frunze84603bf2016-10-21 19:54:43 -07002 * Generic 32bit-to-64bit floating-point unary operation. Provide an "instr"
3 * line that specifies an instruction that performs "fv0 = op fa0".
Douglas Leung200f0402016-02-25 20:05:47 -08004 *
Alexey Frunze84603bf2016-10-21 19:54:43 -07005 * For: int-to-double, float-to-double
Douglas Leung200f0402016-02-25 20:05:47 -08006 */
7 /* unop vA, vB */
8 GET_OPA4(rOBJ) # rOBJ <- A+
9 GET_OPB(a3) # a3 <- B
10 GET_VREG_F(fa0, a3)
11 FETCH_ADVANCE_INST(1) # advance rPC, load rINST
12 $instr
Douglas Leung200f0402016-02-25 20:05:47 -080013 GET_INST_OPCODE(t0) # extract opcode from rINST
Alexey Frunze84603bf2016-10-21 19:54:43 -070014 SET_VREG64_F_GOTO(fv0, fv0f, rOBJ, t0) # vA/vA+1 <- fv0