blob: b9f758ba867e64c8374235a8013871cc7a456de8 [file] [log] [blame]
buzbee1452bee2015-03-06 14:43:04 -08001 /*
2 * Generic 64bit-to-32bit unary floating point operation. Provide an
3 * "instr" line that specifies an instruction that performs "s0 = op d0".
4 *
5 * For: double-to-int, double-to-float
6 */
7 /* unop vA, vB */
8 mov r3, rINST, lsr #12 @ r3<- B
buzbee1452bee2015-03-06 14:43:04 -08009 VREG_INDEX_TO_ADDR r3, r3 @ r3<- &vB
10 fldd d0, [r3] @ d0<- vB
buzbeeace690f2016-03-11 09:51:11 -080011 ubfx r9, rINST, #8, #4 @ r9<- A
buzbee1452bee2015-03-06 14:43:04 -080012 FETCH_ADVANCE_INST 1 @ advance rPC, load rINST
buzbee1452bee2015-03-06 14:43:04 -080013 $instr @ s0<- op
14 GET_INST_OPCODE ip @ extract opcode from rINST
15 VREG_INDEX_TO_ADDR r9, r9 @ r9<- &vA
16 fsts s0, [r9] @ vA<- s0
17 GOTO_OPCODE ip @ jump to next instruction