2 * AArch64 SME specific helper definitions
4 * Copyright (c) 2022 Linaro, Ltd
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
20 DEF_HELPER_FLAGS_2(set_pstate_sm
, TCG_CALL_NO_RWG
, void, env
, i32
)
21 DEF_HELPER_FLAGS_2(set_pstate_za
, TCG_CALL_NO_RWG
, void, env
, i32
)
23 DEF_HELPER_FLAGS_3(sme_zero
, TCG_CALL_NO_RWG
, void, env
, i32
, i32
)
25 /* Move to/from vertical array slices, i.e. columns, so 'c'. */
26 DEF_HELPER_FLAGS_4(sme_mova_cz_b
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, i32
)
27 DEF_HELPER_FLAGS_4(sme_mova_zc_b
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, i32
)
28 DEF_HELPER_FLAGS_4(sme_mova_cz_h
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, i32
)
29 DEF_HELPER_FLAGS_4(sme_mova_zc_h
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, i32
)
30 DEF_HELPER_FLAGS_4(sme_mova_cz_s
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, i32
)
31 DEF_HELPER_FLAGS_4(sme_mova_zc_s
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, i32
)
32 DEF_HELPER_FLAGS_4(sme_mova_cz_d
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, i32
)
33 DEF_HELPER_FLAGS_4(sme_mova_zc_d
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, i32
)
34 DEF_HELPER_FLAGS_4(sme_mova_cz_q
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, i32
)
35 DEF_HELPER_FLAGS_4(sme_mova_zc_q
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, i32
)
37 DEF_HELPER_FLAGS_5(sme_ld1b_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
38 DEF_HELPER_FLAGS_5(sme_ld1b_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
39 DEF_HELPER_FLAGS_5(sme_ld1b_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
40 DEF_HELPER_FLAGS_5(sme_ld1b_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
42 DEF_HELPER_FLAGS_5(sme_ld1h_be_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
43 DEF_HELPER_FLAGS_5(sme_ld1h_le_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
44 DEF_HELPER_FLAGS_5(sme_ld1h_be_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
45 DEF_HELPER_FLAGS_5(sme_ld1h_le_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
46 DEF_HELPER_FLAGS_5(sme_ld1h_be_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
47 DEF_HELPER_FLAGS_5(sme_ld1h_le_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
48 DEF_HELPER_FLAGS_5(sme_ld1h_be_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
49 DEF_HELPER_FLAGS_5(sme_ld1h_le_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
51 DEF_HELPER_FLAGS_5(sme_ld1s_be_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
52 DEF_HELPER_FLAGS_5(sme_ld1s_le_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
53 DEF_HELPER_FLAGS_5(sme_ld1s_be_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
54 DEF_HELPER_FLAGS_5(sme_ld1s_le_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
55 DEF_HELPER_FLAGS_5(sme_ld1s_be_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
56 DEF_HELPER_FLAGS_5(sme_ld1s_le_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
57 DEF_HELPER_FLAGS_5(sme_ld1s_be_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
58 DEF_HELPER_FLAGS_5(sme_ld1s_le_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
60 DEF_HELPER_FLAGS_5(sme_ld1d_be_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
61 DEF_HELPER_FLAGS_5(sme_ld1d_le_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
62 DEF_HELPER_FLAGS_5(sme_ld1d_be_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
63 DEF_HELPER_FLAGS_5(sme_ld1d_le_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
64 DEF_HELPER_FLAGS_5(sme_ld1d_be_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
65 DEF_HELPER_FLAGS_5(sme_ld1d_le_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
66 DEF_HELPER_FLAGS_5(sme_ld1d_be_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
67 DEF_HELPER_FLAGS_5(sme_ld1d_le_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
69 DEF_HELPER_FLAGS_5(sme_ld1q_be_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
70 DEF_HELPER_FLAGS_5(sme_ld1q_le_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
71 DEF_HELPER_FLAGS_5(sme_ld1q_be_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
72 DEF_HELPER_FLAGS_5(sme_ld1q_le_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
73 DEF_HELPER_FLAGS_5(sme_ld1q_be_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
74 DEF_HELPER_FLAGS_5(sme_ld1q_le_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
75 DEF_HELPER_FLAGS_5(sme_ld1q_be_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
76 DEF_HELPER_FLAGS_5(sme_ld1q_le_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
78 DEF_HELPER_FLAGS_5(sme_st1b_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
79 DEF_HELPER_FLAGS_5(sme_st1b_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
80 DEF_HELPER_FLAGS_5(sme_st1b_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
81 DEF_HELPER_FLAGS_5(sme_st1b_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
83 DEF_HELPER_FLAGS_5(sme_st1h_be_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
84 DEF_HELPER_FLAGS_5(sme_st1h_le_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
85 DEF_HELPER_FLAGS_5(sme_st1h_be_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
86 DEF_HELPER_FLAGS_5(sme_st1h_le_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
87 DEF_HELPER_FLAGS_5(sme_st1h_be_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
88 DEF_HELPER_FLAGS_5(sme_st1h_le_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
89 DEF_HELPER_FLAGS_5(sme_st1h_be_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
90 DEF_HELPER_FLAGS_5(sme_st1h_le_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
92 DEF_HELPER_FLAGS_5(sme_st1s_be_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
93 DEF_HELPER_FLAGS_5(sme_st1s_le_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
94 DEF_HELPER_FLAGS_5(sme_st1s_be_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
95 DEF_HELPER_FLAGS_5(sme_st1s_le_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
96 DEF_HELPER_FLAGS_5(sme_st1s_be_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
97 DEF_HELPER_FLAGS_5(sme_st1s_le_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
98 DEF_HELPER_FLAGS_5(sme_st1s_be_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
99 DEF_HELPER_FLAGS_5(sme_st1s_le_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
101 DEF_HELPER_FLAGS_5(sme_st1d_be_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
102 DEF_HELPER_FLAGS_5(sme_st1d_le_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
103 DEF_HELPER_FLAGS_5(sme_st1d_be_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
104 DEF_HELPER_FLAGS_5(sme_st1d_le_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
105 DEF_HELPER_FLAGS_5(sme_st1d_be_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
106 DEF_HELPER_FLAGS_5(sme_st1d_le_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
107 DEF_HELPER_FLAGS_5(sme_st1d_be_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
108 DEF_HELPER_FLAGS_5(sme_st1d_le_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
110 DEF_HELPER_FLAGS_5(sme_st1q_be_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
111 DEF_HELPER_FLAGS_5(sme_st1q_le_h
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
112 DEF_HELPER_FLAGS_5(sme_st1q_be_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
113 DEF_HELPER_FLAGS_5(sme_st1q_le_v
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
114 DEF_HELPER_FLAGS_5(sme_st1q_be_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
115 DEF_HELPER_FLAGS_5(sme_st1q_le_h_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
116 DEF_HELPER_FLAGS_5(sme_st1q_be_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
117 DEF_HELPER_FLAGS_5(sme_st1q_le_v_mte
, TCG_CALL_NO_WG
, void, env
, ptr
, ptr
, tl
, i32
)
119 DEF_HELPER_FLAGS_5(sme_addha_s
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, ptr
, i32
)
120 DEF_HELPER_FLAGS_5(sme_addva_s
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, ptr
, i32
)
121 DEF_HELPER_FLAGS_5(sme_addha_d
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, ptr
, i32
)
122 DEF_HELPER_FLAGS_5(sme_addva_d
, TCG_CALL_NO_RWG
, void, ptr
, ptr
, ptr
, ptr
, i32
)
124 DEF_HELPER_FLAGS_7(sme_fmopa_h
, TCG_CALL_NO_RWG
,
125 void, ptr
, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)
126 DEF_HELPER_FLAGS_7(sme_fmopa_s
, TCG_CALL_NO_RWG
,
127 void, ptr
, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)
128 DEF_HELPER_FLAGS_7(sme_fmopa_d
, TCG_CALL_NO_RWG
,
129 void, ptr
, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)
130 DEF_HELPER_FLAGS_6(sme_bfmopa
, TCG_CALL_NO_RWG
,
131 void, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)
132 DEF_HELPER_FLAGS_6(sme_smopa_s
, TCG_CALL_NO_RWG
,
133 void, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)
134 DEF_HELPER_FLAGS_6(sme_umopa_s
, TCG_CALL_NO_RWG
,
135 void, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)
136 DEF_HELPER_FLAGS_6(sme_sumopa_s
, TCG_CALL_NO_RWG
,
137 void, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)
138 DEF_HELPER_FLAGS_6(sme_usmopa_s
, TCG_CALL_NO_RWG
,
139 void, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)
140 DEF_HELPER_FLAGS_6(sme_smopa_d
, TCG_CALL_NO_RWG
,
141 void, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)
142 DEF_HELPER_FLAGS_6(sme_umopa_d
, TCG_CALL_NO_RWG
,
143 void, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)
144 DEF_HELPER_FLAGS_6(sme_sumopa_d
, TCG_CALL_NO_RWG
,
145 void, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)
146 DEF_HELPER_FLAGS_6(sme_usmopa_d
, TCG_CALL_NO_RWG
,
147 void, ptr
, ptr
, ptr
, ptr
, ptr
, i32
)