• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1    /* rem-float vAA, vBB, vCC */
2    .extern fmodf
3    lbu     a2, 2(rPC)                  # a2 <- BB
4    lbu     a3, 3(rPC)                  # a3 <- CC
5    GET_VREG_FLOAT f12, a2              # f12 <- vBB
6    GET_VREG_FLOAT f13, a3              # f13 <- vCC
7    jal     fmodf                       # f0 <- f12 op f13
8    srl     a4, rINST, 8                # a4 <- AA
9    FETCH_ADVANCE_INST 2                # advance rPC, load rINST
10    GET_INST_OPCODE v0                  # extract opcode from rINST
11    SET_VREG_FLOAT f0, a4               # vAA <- f0
12    GOTO_OPCODE v0                      # jump to next instruction
13