diff mbox series

[01/38] target/arm: Fill in .opc for cmtst_op

Message ID 20190420073442.7488-2-richard.henderson@linaro.org
State New
Headers show
Series tcg vector improvements | expand

Commit Message

Richard Henderson April 20, 2019, 7:34 a.m. UTC
This allows us to fall back to integers if the tcg backend
does not support comparisons in the given vece.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 target/arm/translate.c | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.17.1

Comments

David Hildenbrand April 23, 2019, 8 a.m. UTC | #1
On 20.04.19 09:34, Richard Henderson wrote:
> This allows us to fall back to integers if the tcg backend

> does not support comparisons in the given vece.

> 

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

> ---

>  target/arm/translate.c | 4 ++++

>  1 file changed, 4 insertions(+)

> 

> diff --git a/target/arm/translate.c b/target/arm/translate.c

> index d408e4d7ef..13e2dc6562 100644

> --- a/target/arm/translate.c

> +++ b/target/arm/translate.c

> @@ -6140,16 +6140,20 @@ static void gen_cmtst_vec(unsigned vece, TCGv_vec d, TCGv_vec a, TCGv_vec b)

>  const GVecGen3 cmtst_op[4] = {

>      { .fni4 = gen_helper_neon_tst_u8,

>        .fniv = gen_cmtst_vec,

> +      .opc = INDEX_op_cmp_vec,

>        .vece = MO_8 },

>      { .fni4 = gen_helper_neon_tst_u16,

>        .fniv = gen_cmtst_vec,

> +      .opc = INDEX_op_cmp_vec,

>        .vece = MO_16 },

>      { .fni4 = gen_cmtst_i32,

>        .fniv = gen_cmtst_vec,

> +      .opc = INDEX_op_cmp_vec,

>        .vece = MO_32 },

>      { .fni8 = gen_cmtst_i64,

>        .fniv = gen_cmtst_vec,

>        .prefer_i64 = TCG_TARGET_REG_BITS == 64,

> +      .opc = INDEX_op_cmp_vec,

>        .vece = MO_64 },

>  };

>  

> 


Reviewed-by: David Hildenbrand <david@redhat.com>


-- 

Thanks,

David / dhildenb
diff mbox series

Patch

diff --git a/target/arm/translate.c b/target/arm/translate.c
index d408e4d7ef..13e2dc6562 100644
--- a/target/arm/translate.c
+++ b/target/arm/translate.c
@@ -6140,16 +6140,20 @@  static void gen_cmtst_vec(unsigned vece, TCGv_vec d, TCGv_vec a, TCGv_vec b)
 const GVecGen3 cmtst_op[4] = {
     { .fni4 = gen_helper_neon_tst_u8,
       .fniv = gen_cmtst_vec,
+      .opc = INDEX_op_cmp_vec,
       .vece = MO_8 },
     { .fni4 = gen_helper_neon_tst_u16,
       .fniv = gen_cmtst_vec,
+      .opc = INDEX_op_cmp_vec,
       .vece = MO_16 },
     { .fni4 = gen_cmtst_i32,
       .fniv = gen_cmtst_vec,
+      .opc = INDEX_op_cmp_vec,
       .vece = MO_32 },
     { .fni8 = gen_cmtst_i64,
       .fniv = gen_cmtst_vec,
       .prefer_i64 = TCG_TARGET_REG_BITS == 64,
+      .opc = INDEX_op_cmp_vec,
       .vece = MO_64 },
 };