[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 46/67] Hexagon TCG generation - step 08
From: |
Taylor Simpson |
Subject: |
[RFC PATCH v2 46/67] Hexagon TCG generation - step 08 |
Date: |
Fri, 28 Feb 2020 10:43:42 -0600 |
Override mathematical operations with more than one definition
Signed-off-by: Taylor Simpson <address@hidden>
---
target/hexagon/helper_overrides.h | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/target/hexagon/helper_overrides.h
b/target/hexagon/helper_overrides.h
index 1ac363e..d18aea4 100644
--- a/target/hexagon/helper_overrides.h
+++ b/target/hexagon/helper_overrides.h
@@ -1200,4 +1200,34 @@
#define fWRAP_SL2_return_fnew(GENHLPR, SHORTCODE) \
fWRAP_COND_RETURN_SUBINSN(fLSBNEW0NOT)
+/*
+ * Mathematical operations with more than one definition require
+ * special handling
+ */
+/*
+ * Approximate reciprocal
+ * r3,p1 = sfrecipa(r0, r1)
+ */
+#define fWRAP_F2_sfrecipa(GENHLPR, SHORTCODE) \
+ do { \
+ gen_helper_sfrecipa_val(RdV, cpu_env, RsV, RtV); \
+ gen_helper_sfrecipa_pred(PeV, cpu_env, RsV, RtV); \
+ } while (0)
+
+/*
+ * Approximation of the reciprocal square root
+ * r1,p0 = sfinvsqrta(r0)
+ */
+#define fWRAP_F2_sfinvsqrta(GENHLPR, SHORTCODE) \
+ do { \
+ gen_helper_sfinvsqrta_val(RdV, cpu_env, RsV); \
+ gen_helper_sfinvsqrta_pred(PeV, cpu_env, RsV); \
+ } while (0)
+
+#define fWRAP_A5_ACS(GENHLPR, SHORTCODE) \
+ do { \
+ gen_helper_vacsh_val(RxxV, cpu_env, RxxV, RssV, RttV); \
+ gen_helper_vacsh_pred(PeV, cpu_env, RxxV, RssV, RttV); \
+ } while (0)
+
#endif
--
2.7.4
- [RFC PATCH v2 32/67] Hexagon macros referenced in instruction semantics, (continued)
- [RFC PATCH v2 32/67] Hexagon macros referenced in instruction semantics, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 62/67] Hexagon HVX macros to interface with the generator, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 48/67] Hexagon TCG generation - step 10, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 26/67] Hexagon generator phase 2 - op_regs_generated.h, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 58/67] Hexagon HVX import macro definitions, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 60/67] Hexagon HVX instruction decoding, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 63/67] Hexagon HVX macros referenced in instruction semantics, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 39/67] Hexagon TCG generation - step 01, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 52/67] Hexagon Linux user emulation, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 56/67] Hexagon HVX import instruction encodings, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 46/67] Hexagon TCG generation - step 08,
Taylor Simpson <=
- [RFC PATCH v2 54/67] Hexagon - Add Hexagon Vector eXtensions (HVX) to core definition, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 30/67] Hexagon opcode data structures, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 61/67] Hexagon HVX instruction utility functions, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 36/67] Hexagon TCG generation helpers - step 3, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 35/67] Hexagon TCG generation helpers - step 2, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 45/67] Hexagon TCG generation - step 07, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 50/67] Hexagon TCG generation - step 12, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 42/67] Hexagon TCG generation - step 04, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 40/67] Hexagon TCG generation - step 02, Taylor Simpson, 2020/02/28
- [RFC PATCH v2 34/67] Hexagon TCG generation helpers - step 1, Taylor Simpson, 2020/02/28