diff options
author | Christophe Lyon <christophe.lyon@arm.com> | 2023-02-28 16:12:29 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@arm.com> | 2023-05-12 12:40:40 +0200 |
commit | be373b5488d0b158a4837ff2d53012a923d8f152 (patch) | |
tree | d1ad4489a7dc02d4bdc21ec2d37ec096c93ad05c /gcc | |
parent | 3257936148c0a6962760a00c0a8fa57ae92d57a1 (diff) | |
download | gcc-be373b5488d0b158a4837ff2d53012a923d8f152.zip gcc-be373b5488d0b158a4837ff2d53012a923d8f152.tar.gz gcc-be373b5488d0b158a4837ff2d53012a923d8f152.tar.bz2 |
arm: [MVE intrinsics] factorize vsriq
Factorize vsriq builtins so that they use parameterized names.
2022-12-12 Christophe Lyon <christophe.lyon@arm.com>
gcc/
* config/arm/iterators.md (mve_insn): Add vsri.
* config/arm/mve.md (mve_vsriq_n_<supf><mode>): Rename into ...
(@mve_<mve_insn>q_n_<supf><mode>): .,. this.
(mve_vsriq_m_n_<supf><mode>): Rename into ...
(@mve_<mve_insn>q_m_n_<supf><mode>): ... this.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/arm/iterators.md | 2 | ||||
-rw-r--r-- | gcc/config/arm/mve.md | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/config/arm/iterators.md b/gcc/config/arm/iterators.md index 7e72190..597c1da 100644 --- a/gcc/config/arm/iterators.md +++ b/gcc/config/arm/iterators.md @@ -1183,6 +1183,8 @@ (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") + (VSRIQ_M_N_S "vsri") (VSRIQ_M_N_U "vsri") + (VSRIQ_N_S "vsri") (VSRIQ_N_U "vsri") (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 a1c2cad..85d701a 100644 --- a/gcc/config/arm/mve.md +++ b/gcc/config/arm/mve.md @@ -2074,7 +2074,7 @@ ;; ;; [vsriq_n_u, vsriq_n_s]) ;; -(define_insn "mve_vsriq_n_<supf><mode>" +(define_insn "@mve_<mve_insn>q_n_<supf><mode>" [ (set (match_operand:MVE_2 0 "s_register_operand" "=w") (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") @@ -2083,7 +2083,7 @@ VSRIQ_N)) ] "TARGET_HAVE_MVE" - "vsri.%#<V_sz_elem>\t%q0, %q2, %3" + "<mve_insn>.%#<V_sz_elem>\t%q0, %q2, %3" [(set_attr "type" "mve_move") ]) @@ -2641,7 +2641,7 @@ ;; ;; [vsriq_m_n_s, vsriq_m_n_u]) ;; -(define_insn "mve_vsriq_m_n_<supf><mode>" +(define_insn "@mve_<mve_insn>q_m_n_<supf><mode>" [ (set (match_operand:MVE_2 0 "s_register_operand" "=w") (unspec:MVE_2 [(match_operand:MVE_2 1 "s_register_operand" "0") @@ -2651,7 +2651,7 @@ VSRIQ_M_N)) ] "TARGET_HAVE_MVE" - "vpst\;vsrit.%#<V_sz_elem>\t%q0, %q2, %3" + "vpst\;<mve_insn>t.%#<V_sz_elem>\t%q0, %q2, %3" [(set_attr "type" "mve_move") (set_attr "length" "8")]) |