| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 8 | 4 | * |
|---|
| 9 | 5 | * This test attempts to see if the VMX registers are correctly reported in a |
|---|
| 10 | 6 | * signal context. Each worker just spins checking its VMX registers, at some |
|---|
| .. | .. |
|---|
| 100 | 96 | void *rc_p; |
|---|
| 101 | 97 | pthread_t *tids; |
|---|
| 102 | 98 | |
|---|
| 99 | + // vcmpequd used in vmx_asm.S is v2.07 |
|---|
| 100 | + SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_2_07)); |
|---|
| 101 | + |
|---|
| 103 | 102 | threads = sysconf(_SC_NPROCESSORS_ONLN) * THREAD_FACTOR; |
|---|
| 104 | 103 | tids = malloc(threads * sizeof(pthread_t)); |
|---|
| 105 | 104 | FAIL_IF(!tids); |
|---|