Home | History | Annotate | Download | only in mips
      1 %default {"preinstr":"", "result0":"a0", "result1":"a1"}
      2     /*
      3      * Generic 32bit-to-64bit unary operation.  Provide an "instr" line
      4      * that specifies an instruction that performs "result0/result1 = op a0".
      5      *
      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
     16     SET_VREG64_GOTO($result0, $result1, rOBJ, t0)   #  vA/vA+1 <- a0/a1
     17