[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 15/34] target/arm/tcg: Export some generic vector helpers
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 15/34] target/arm/tcg: Export some generic vector helpers |
Date: |
Mon, 19 Jun 2023 17:54:51 +0200 |
We want to extract gvec helpers to a new translate-gvec.c
file. Some helpers will still be accessed out of it, from
the current translate.c. Expose their prototype.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/arm/tcg/translate.h | 5 +++++
target/arm/tcg/translate.c | 8 ++++----
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/target/arm/tcg/translate.h b/target/arm/tcg/translate.h
index d2a98b9f3a..7d57a71b67 100644
--- a/target/arm/tcg/translate.h
+++ b/target/arm/tcg/translate.h
@@ -418,6 +418,11 @@ void gen_sshl_i32(TCGv_i32 d, TCGv_i32 a, TCGv_i32 b);
void gen_ushl_i64(TCGv_i64 d, TCGv_i64 a, TCGv_i64 b);
void gen_sshl_i64(TCGv_i64 d, TCGv_i64 a, TCGv_i64 b);
+void gen_urshr32_i32(TCGv_i32 d, TCGv_i32 a, int32_t sh);
+void gen_srshr32_i32(TCGv_i32 d, TCGv_i32 a, int32_t sh);
+void gen_urshr64_i64(TCGv_i64 d, TCGv_i64 a, int64_t sh);
+void gen_srshr64_i64(TCGv_i64 d, TCGv_i64 a, int64_t sh);
+
void gen_gvec_uqadd_qc(unsigned vece, uint32_t rd_ofs, uint32_t rn_ofs,
uint32_t rm_ofs, uint32_t opr_sz, uint32_t max_sz);
void gen_gvec_sqadd_qc(unsigned vece, uint32_t rd_ofs, uint32_t rn_ofs,
diff --git a/target/arm/tcg/translate.c b/target/arm/tcg/translate.c
index 2b3951cece..adefa737c9 100644
--- a/target/arm/tcg/translate.c
+++ b/target/arm/tcg/translate.c
@@ -1925,7 +1925,7 @@ static void gen_srshr16_i64(TCGv_i64 d, TCGv_i64 a,
int64_t sh)
tcg_gen_vec_add16_i64(d, d, t);
}
-static void gen_srshr32_i32(TCGv_i32 d, TCGv_i32 a, int32_t sh)
+void gen_srshr32_i32(TCGv_i32 d, TCGv_i32 a, int32_t sh)
{
TCGv_i32 t;
@@ -1940,7 +1940,7 @@ static void gen_srshr32_i32(TCGv_i32 d, TCGv_i32 a,
int32_t sh)
tcg_gen_add_i32(d, d, t);
}
-static void gen_srshr64_i64(TCGv_i64 d, TCGv_i64 a, int64_t sh)
+void gen_srshr64_i64(TCGv_i64 d, TCGv_i64 a, int64_t sh)
{
TCGv_i64 t = tcg_temp_new_i64();
@@ -2120,7 +2120,7 @@ static void gen_urshr16_i64(TCGv_i64 d, TCGv_i64 a,
int64_t sh)
tcg_gen_vec_add16_i64(d, d, t);
}
-static void gen_urshr32_i32(TCGv_i32 d, TCGv_i32 a, int32_t sh)
+void gen_urshr32_i32(TCGv_i32 d, TCGv_i32 a, int32_t sh)
{
TCGv_i32 t;
@@ -2135,7 +2135,7 @@ static void gen_urshr32_i32(TCGv_i32 d, TCGv_i32 a,
int32_t sh)
tcg_gen_add_i32(d, d, t);
}
-static void gen_urshr64_i64(TCGv_i64 d, TCGv_i64 a, int64_t sh)
+void gen_urshr64_i64(TCGv_i64 d, TCGv_i64 a, int64_t sh)
{
TCGv_i64 t = tcg_temp_new_i64();
--
2.38.1
- [PATCH v3 08/34] target/arm/tcg: Un-inline VFP translation helpers, (continued)
- [PATCH v3 08/34] target/arm/tcg: Un-inline VFP translation helpers, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 06/34] target/arm/tcg: Extract iwmmxt code to translate-iwmmxt.c, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 10/34] target/arm/tcg: Extract VFP definitions to 'helper-vfp.h.inc', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 11/34] target/arm/tcg: Reduce 'helper-vfp.h.inc' inclusion, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 12/34] target/arm/tcg: Move NEON helpers to neon_helper.c, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 13/34] target/arm/tcg: Extract NEON definitions to 'helper-neon.h.inc', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 14/34] target/arm/tcg: Reduce 'helper-neon.h.inc' inclusion, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 15/34] target/arm/tcg: Export some generic vector helpers,
Philippe Mathieu-Daudé <=
- [PATCH v3 16/34] target/arm/tcg: Extract generic vector helpers to translate-gvec.c, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 17/34] target/arm/tcg: Extract gvec definitions to 'helper-gvec.h.inc', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 18/34] target/arm/tcg: Reduce 'helper-gvec.h.inc' inclusion, Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 19/34] target/arm/tcg: Extract SVE2 definitions to 'helper-sve.h.inc', Philippe Mathieu-Daudé, 2023/06/19
- [PATCH v3 20/34] target/arm/tcg: Reduce 'helper-sve.h.inc' inclusion, Philippe Mathieu-Daudé, 2023/06/19