Douglas Leung | 200f040 | 2016-02-25 20:05:47 -0800 | [diff] [blame] | 1 | %default { "is_object":"0" } |
| 2 | /* for move, move-object, long-to-int */ |
| 3 | /* op vA, vB */ |
| 4 | GET_OPB(a1) # a1 <- B from 15:12 |
| 5 | GET_OPA4(a0) # a0 <- A from 11:8 |
| 6 | FETCH_ADVANCE_INST(1) # advance rPC, load rINST |
| 7 | GET_VREG(a2, a1) # a2 <- fp[B] |
| 8 | GET_INST_OPCODE(t0) # t0 <- opcode from rINST |
| 9 | .if $is_object |
Alexey Frunze | 84603bf | 2016-10-21 19:54:43 -0700 | [diff] [blame] | 10 | SET_VREG_OBJECT_GOTO(a2, a0, t0) # fp[A] <- a2 |
Douglas Leung | 200f040 | 2016-02-25 20:05:47 -0800 | [diff] [blame] | 11 | .else |
Alexey Frunze | 84603bf | 2016-10-21 19:54:43 -0700 | [diff] [blame] | 12 | SET_VREG_GOTO(a2, a0, t0) # fp[A] <- a2 |
Douglas Leung | 200f040 | 2016-02-25 20:05:47 -0800 | [diff] [blame] | 13 | .endif |