Douglas Leung | 200f040 | 2016-02-25 20:05:47 -0800 | [diff] [blame] | 1 | %default { "is_object":"0" } |
| 2 | /* for: move-result, move-result-object */ |
| 3 | /* op vAA */ |
| 4 | GET_OPA(a2) # a2 <- AA |
| 5 | FETCH_ADVANCE_INST(1) # advance rPC, load rINST |
| 6 | lw a0, OFF_FP_RESULT_REGISTER(rFP) # get pointer to result JType |
| 7 | lw a0, 0(a0) # a0 <- result.i |
| 8 | GET_INST_OPCODE(t0) # extract opcode from rINST |
| 9 | .if $is_object |
Alexey Frunze | 84603bf | 2016-10-21 19:54:43 -0700 | [diff] [blame] | 10 | SET_VREG_OBJECT_GOTO(a0, a2, t0) # fp[AA] <- a0 |
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(a0, a2, t0) # fp[AA] <- a0 |
Douglas Leung | 200f040 | 2016-02-25 20:05:47 -0800 | [diff] [blame] | 13 | .endif |