diff options
Diffstat (limited to 'config.tests/x86intrin/main.cpp')
-rw-r--r-- | config.tests/x86intrin/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config.tests/x86intrin/main.cpp b/config.tests/x86intrin/main.cpp index 4306a4721c..2e6b198710 100644 --- a/config.tests/x86intrin/main.cpp +++ b/config.tests/x86intrin/main.cpp @@ -1,5 +1,5 @@ // Copyright (C) 2022 Intel Corporation. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +// SPDX-License-Identifier: BSD-3-Clause #include <immintrin.h> @@ -12,7 +12,9 @@ int test(int argc, char **argv) { unsigned randomvalue; _rdrand32_step(&randomvalue); // RDRND (IVB) +#ifndef __QNXNTO__ // buggy compiler is missing this intrinsic, but we allow it _rdseed32_step(&randomvalue); // RDSEED (BDW) +#endif unsigned mask = _blsmsk_u32(argc); // BMI (HSW) int clz = _lzcnt_u32(mask); // LZCNT (HSW) int ctz = _tzcnt_u32(mask); // BMI (HSW) |