summaryrefslogtreecommitdiff
path: root/vm/compiler/template/armv5te-vfp/funop.S
diff options
context:
space:
mode:
Diffstat (limited to 'vm/compiler/template/armv5te-vfp/funop.S')
-rw-r--r--vm/compiler/template/armv5te-vfp/funop.S15
1 files changed, 15 insertions, 0 deletions
diff --git a/vm/compiler/template/armv5te-vfp/funop.S b/vm/compiler/template/armv5te-vfp/funop.S
new file mode 100644
index 0000000..8409c28
--- /dev/null
+++ b/vm/compiler/template/armv5te-vfp/funop.S
@@ -0,0 +1,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