hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/tools/testing/selftests/powerpc/math/vmx_signal.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2015, Cyril Bur, IBM Corp.
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 *
95 * This test attempts to see if the VMX registers are correctly reported in a
106 * signal context. Each worker just spins checking its VMX registers, at some
....@@ -100,6 +96,9 @@
10096 void *rc_p;
10197 pthread_t *tids;
10298
99
+ // vcmpequd used in vmx_asm.S is v2.07
100
+ SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_2_07));
101
+
103102 threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR;
104103 tids = malloc(threads * sizeof(pthread_t));
105104 FAIL_IF(!tids);