Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sme/acle-asm/str_vnum_za_s.c

raw
1 /* { dg-final { check-function-bodies "**" "" "-DCHECK_ASM" } } */
2
3 #include "test_sme_acle.h"
4
5 /*
6 ** str_vnum_za_0_0:
7 ** mov (w1[2-5]), (?:wzr|#?0)
8 ** str za\[\1, 0\], \[x1(?:, #0, mul vl)?\]
9 ** ret
10 */
11 TEST_STORE_ZA (str_vnum_za_0_0,
12 svstr_vnum_za (0, x1, 0),
13 svstr_vnum_za (0, x1, 0))
14
15 /*
16 ** str_vnum_za_0_1:
17 ** mov (w1[2-5]), (?:wzr|#?0)
18 ** str za\[\1, 1\], \[x1(?:, #1, mul vl)?\]
19 ** ret
20 */
21 TEST_STORE_ZA (str_vnum_za_0_1,
22 svstr_vnum_za (0, x1, 1),
23 svstr_vnum_za (0, x1, 1))
24
25 /*
26 ** str_vnum_za_1_0:
27 ** mov (w1[2-5]), #?1
28 ** str za\[\1, 0\], \[x1(?:, #0, mul vl)?\]
29 ** ret
30 */
31 TEST_STORE_ZA (str_vnum_za_1_0,
32 svstr_vnum_za (1, x1, 0),
33 svstr_vnum_za (1, x1, 0))
34
35 /*
36 ** str_vnum_za_1_2:
37 ** mov (w1[2-5]), #?1
38 ** str za\[\1, 2\], \[x1(?:, #2, mul vl)?\]
39 ** ret
40 */
41 TEST_STORE_ZA (str_vnum_za_1_2,
42 svstr_vnum_za (1, x1, 2),
43 svstr_vnum_za (1, x1, 2))
44
45 /*
46 ** str_vnum_za_w0_0:
47 ** mov (w1[2-5]), w0
48 ** str za\[\1, 0\], \[x1(?:, #0, mul vl)?\]
49 ** ret
50 */
51 TEST_STORE_ZA (str_vnum_za_w0_0,
52 svstr_vnum_za (w0, x1, 0),
53 svstr_vnum_za (w0, x1, 0))
54
55 /*
56 ** str_vnum_za_w0_1:
57 ** mov (w1[2-5]), w0
58 ** str za\[\1, 1\], \[x1, #1, mul vl\]
59 ** ret
60 */
61 TEST_STORE_ZA (str_vnum_za_w0_1,
62 svstr_vnum_za (w0, x1, 1),
63 svstr_vnum_za (w0, x1, 1))
64
65 /*
66 ** str_vnum_za_w0_13:
67 ** mov (w1[2-5]), w0
68 ** str za\[\1, 13\], \[x1, #13, mul vl\]
69 ** ret
70 */
71 TEST_STORE_ZA (str_vnum_za_w0_13,
72 svstr_vnum_za (w0, x1, 13),
73 svstr_vnum_za (w0, x1, 13))
74
75 /*
76 ** str_vnum_za_w0_15:
77 ** mov (w1[2-5]), w0
78 ** str za\[\1, 15\], \[x1, #15, mul vl\]
79 ** ret
80 */
81 TEST_STORE_ZA (str_vnum_za_w0_15,
82 svstr_vnum_za (w0, x1, 15),
83 svstr_vnum_za (w0, x1, 15))
84
85 /*
86 ** str_vnum_za_w0_16:
87 ** (
88 ** add (w1[2-5]), w0, #?16
89 ** incb x1, all, mul #16
90 ** str za\[\1, 0\], \[x1(?:, #0, mul vl)?\]
91 ** |
92 ** incb x1, all, mul #16
93 ** add (w1[2-5]), w0, #?16
94 ** str za\[\2, 0\], \[x1(?:, #0, mul vl)?\]
95 ** )
96 ** ret
97 */
98 TEST_STORE_ZA (str_vnum_za_w0_16,
99 svstr_vnum_za (w0, x1, 16),
100 svstr_vnum_za (w0, x1, 16))
101
102 /*
103 ** str_vnum_za_w0_m1:
104 ** (
105 ** sub (w1[2-5]), w0, #?1
106 ** decb x1
107 ** str za\[\1, 0\], \[x1(?:, #0, mul vl)?\]
108 ** |
109 ** decb x1
110 ** sub (w1[2-5]), w0, #?1
111 ** str za\[\2, 0\], \[x1(?:, #0, mul vl)?\]
112 ** )
113 ** ret
114 */
115 TEST_STORE_ZA (str_vnum_za_w0_m1,
116 svstr_vnum_za (w0, x1, -1),
117 svstr_vnum_za (w0, x1, -1))
118
119 /*
120 ** str_vnum_za_w0p1_0:
121 ** add (w1[2-5]), w0, #?1
122 ** str za\[\1, 0\], \[x1(?:, #0, mul vl)?\]
123 ** ret
124 */
125 TEST_STORE_ZA (str_vnum_za_w0p1_0,
126 svstr_vnum_za (w0 + 1, x1, 0),
127 svstr_vnum_za (w0 + 1, x1, 0))
128
129 /*
130 ** str_vnum_za_w0m1_1:
131 ** sub (w1[2-5]), w0, #?1
132 ** str za\[\1, 1\], \[x1(?:, #1, mul vl)?\]
133 ** ret
134 */
135 TEST_STORE_ZA (str_vnum_za_w0m1_1,
136 svstr_vnum_za (w0 - 1, x1, 1),
137 svstr_vnum_za (w0 - 1, x1, 1))
138
139 /*
140 ** str_vnum_za_w0p2_3:
141 ** add (w1[2-5]), w0, #?2
142 ** str za\[\1, 3\], \[x1(?:, #3, mul vl)?\]
143 ** ret
144 */
145 TEST_STORE_ZA (str_vnum_za_w0p2_3,
146 svstr_vnum_za (w0 + 2, x1, 3),
147 svstr_vnum_za (w0 + 2, x1, 3))