We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb27c76 commit 09d2e95Copy full SHA for 09d2e95
tools/testing/selftests/arm64/abi/hwcap.c
@@ -33,6 +33,11 @@
33
*/
34
typedef void (*sigill_fn)(void);
35
36
+static void crc32_sigill(void)
37
+{
38
+ asm volatile("crc32w w0, w0, w1");
39
+}
40
+
41
static void cssc_sigill(void)
42
{
43
/* CNT x0, x0 */
@@ -233,6 +238,13 @@ static const struct hwcap_data {
233
238
sigill_fn sigill_fn;
234
239
bool sigill_reliable;
235
240
} hwcaps[] = {
241
+ {
242
+ .name = "CRC32",
243
+ .at_hwcap = AT_HWCAP,
244
+ .hwcap_bit = HWCAP_CRC32,
245
+ .cpuinfo = "crc32",
246
+ .sigill_fn = crc32_sigill,
247
+ },
236
248
237
249
.name = "CSSC",
250
.at_hwcap = AT_HWCAP2,
0 commit comments