summaryrefslogtreecommitdiff
path: root/vm/compiler/template/armv5te-vfp/funop.S
blob: 8409c287cadb03e4b599fe20dbf03ede109ff315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
    /*
     * Generic 32bit-to-32bit floating point unary operation.  Provide an
     * "instr" line that specifies an instruction that performs "s1 = op s0".
     *
     * For: float-to-int, int-to-float
     *
     * On entry:
     *     r0 = target dalvik register address
     *     r1 = src dalvik register address
     */
    /* unop vA, vB */
    flds    s0, [r1]                    @ s0<- vB
    $instr                              @ s1<- op s0
    fsts    s1, [r0]                    @ vA<- s1
    bx      lr