From 3767c7fe356f6e320ffb1806fadf5a3b54c80151 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Mon, 27 Feb 2023 19:16:43 +0000 Subject: arm: [MVE intrinsics] factorize vsliq Factorize vsliq builtins so that they use parameterized names. 2022-12-12 Christophe Lyon gcc/ * config/arm/iterators.md (mve_insn>): Add vsli. * config/arm/mve.md (mve_vsliq_n_): Rename into ... (@mve_q_n_): ... this. (mve_vsliq_m_n_): Rename into ... (@mve_q_m_n_): ... this. --- gcc/config/arm/iterators.md | 2 ++ gcc/config/arm/mve.md | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'gcc') diff --git a/gcc/config/arm/iterators.md b/gcc/config/arm/iterators.md index 3d4a9cf..7e72190 100644 --- a/gcc/config/arm/iterators.md +++ b/gcc/config/arm/iterators.md @@ -1181,6 +1181,8 @@ (VSHRNTQ_N_S "vshrnt") (VSHRNTQ_N_U "vshrnt") (VSHRQ_M_N_S "vshr") (VSHRQ_M_N_U "vshr") (VSHRQ_N_S "vshr") (VSHRQ_N_U "vshr") + (VSLIQ_M_N_S "vsli") (VSLIQ_M_N_U "vsli") + (VSLIQ_N_S "vsli") (VSLIQ_N_U "vsli") (VSUBQ_M_N_S "vsub") (VSUBQ_M_N_U "vsub") (VSUBQ_M_N_F "vsub") (VSUBQ_M_S "vsub") (VSUBQ_M_U "vsub") (VSUBQ_M_F "vsub") (VSUBQ_N_S "vsub") (VSUBQ_N_U "vsub") (VSUBQ_N_F "vsub") diff --git a/gcc/config/arm/mve.md b/gcc/config/arm/mve.md index c6f9c0b..a1c2cad 100644 --- a/gcc/config/arm/mve.md +++ b/gcc/config/arm/mve.md @@ -2058,7 +2058,7 @@ ;; ;; [vsliq_n_u, vsliq_n_s]) ;; -(define_insn "mve_vsliq_n_" +(define_insn "@mve_q_n_" [ (set (match_operand:MVE_2 0 "s_register_operand" "=w") (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") @@ -2067,7 +2067,7 @@ VSLIQ_N)) ] "TARGET_HAVE_MVE" - "vsli.%#\t%q0, %q2, %3" + ".%#\t%q0, %q2, %3" [(set_attr "type" "mve_move") ]) @@ -2960,7 +2960,7 @@ ;; ;; [vsliq_m_n_u, vsliq_m_n_s]) ;; -(define_insn "mve_vsliq_m_n_" +(define_insn "@mve_q_m_n_" [ (set (match_operand:MVE_2 0 "s_register_operand" "=w") (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") @@ -2970,7 +2970,7 @@ VSLIQ_M_N)) ] "TARGET_HAVE_MVE" - "vpst\;vslit.%#\t%q0, %q2, %3" + "vpst\;t.%#\t%q0, %q2, %3" [(set_attr "type" "mve_move") (set_attr "length""8")]) -- cgit v1.1