summaryrefslogtreecommitdiffstats
path: root/src/arch/arm/vfp_macros.th
diff options
context:
space:
mode:
authorHaruki Hasegawa <h6a.h4i.0@gmail.com>2016-05-05 13:24:55 +0900
committerHaruki Hasegawa <h6a.h4i.0@gmail.com>2016-05-05 13:24:55 +0900
commitda3213cf045e0c7c4971d8b44272d1d86d689ceb (patch)
tree33e17e0a166f03307ebf11e8ab2891ae1ab90f61 /src/arch/arm/vfp_macros.th
parentfa1780c68593762b1e4bdbc46d83912db3eba27a (diff)
parent944d14c9151f6b20145de0cdae38e366e73c9432 (diff)
downloadffts-da3213cf045e0c7c4971d8b44272d1d86d689ceb.zip
ffts-da3213cf045e0c7c4971d8b44272d1d86d689ceb.tar.gz
Merge remote-tracking branch 'linkotec/master'
Diffstat (limited to 'src/arch/arm/vfp_macros.th')
-rw-r--r--src/arch/arm/vfp_macros.th15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/arch/arm/vfp_macros.th b/src/arch/arm/vfp_macros.th
new file mode 100644
index 0000000..cca67dc
--- /dev/null
+++ b/src/arch/arm/vfp_macros.th
@@ -0,0 +1,15 @@
+/* -- <Op> -- */
+
+
+/* Fd := Fn <Op> Fm */
+#define ARM_VFP_<Op>D_COND(p, rd, rn, rm, cond) \
+ ARM_EMIT((p), ARM_DEF_VFP_DYADIC(cond,ARM_VFP_COPROC_DOUBLE,ARM_VFP_<Op>,rd,rn,rm))
+#define ARM_VFP_<Op>D(p, rd, rn, rm) \
+ ARM_VFP_<Op>D_COND(p, rd, rn, rm, ARMCOND_AL)
+
+#define ARM_VFP_<Op>S_COND(p, rd, rn, rm, cond) \
+ ARM_EMIT((p), ARM_DEF_VFP_DYADIC(cond,ARM_VFP_COPROC_SINGLE,ARM_VFP_<Op>,rd,rn,rm))
+#define ARM_VFP_<Op>S(p, rd, rn, rm) \
+ ARM_VFP_<Op>S_COND(p, rd, rn, rm, ARMCOND_AL)
+
+
OpenPOWER on IntegriCloud