Home | History | Annotate | Download | only in mips
      1 %default {"preinstr":"", "ld_arg":"LOAD64_F(fa0, fa0f, a3)", "st_result":"STORE64_F(fv0, fv0f, rOBJ)"}
      2     /*
      3      * Generic 64-bit unary operation.  Provide an "instr" line that
      4      * specifies an instruction that performs "result = op a0/a1".
      5      * This could be a MIPS instruction or a function call.
      6      *
      7      * long-to-double, double-to-long
      8      */
      9     /* unop vA, vB */
     10     GET_OPA4(rOBJ)                         #  t1 <- A+
     11     GET_OPB(a3)                            #  a3 <- B
     12     EAS2(a3, rFP, a3)                      #  a3 <- &fp[B]
     13     EAS2(rOBJ, rFP, rOBJ)                  #  t1 <- &fp[A]
     14 #ifdef SOFT_FLOAT
     15     LOAD64(rARG0, rARG1, a3)               #  a0/a1 <- vAA
     16 #else
     17     $ld_arg
     18 #endif
     19     FETCH_ADVANCE_INST(1)                  #  advance rPC, load rINST
     20     $preinstr                              #  optional op
     21     $instr                                 #  a0/a1 <- op, a2-a3 changed
     22 
     23 .L${opcode}_set_vreg:
     24 #ifdef SOFT_FLOAT
     25     STORE64(rRESULT0, rRESULT1, rOBJ)      #  vAA <- a0/a1
     26 #else
     27     $st_result                             #  vAA <- a0/a1
     28 #endif
     29     GET_INST_OPCODE(t0)                    #  extract opcode from rINST
     30     GOTO_OPCODE(t0)                        #  jump to next instruction
     31     /* 12-13 instructions */
     32 
     33