1%default {}
2    /*:
3     * Generic 32-bit floating-point operation.
4     *
5     * For: add-float, sub-float, mul-float, div-float.
6     * form: <op> f0, f0, f1
7     */
8    /* binop vAA, vBB, vCC */
9    srl     a4, rINST, 8                # a4 <- AA
10    lbu     a2, 2(rPC)                  # a2 <- BB
11    lbu     a3, 3(rPC)                  # a3 <- CC
12    GET_VREG_FLOAT f0, a2               # f0 <- vBB
13    GET_VREG_FLOAT f1, a3               # f1 <- vCC
14    $instr                              # f0 <- f0 op f1
15    FETCH_ADVANCE_INST 2                # advance rPC, load rINST
16    GET_INST_OPCODE v0                  # extract opcode from rINST
17    SET_VREG_FLOAT f0, a4               # vAA <- f0
18    GOTO_OPCODE v0                      # jump to next instruction
19