diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-07-04 09:01:47 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-07-06 03:20:38 -0700 |
commit | 3622fc81ea29e1b20c6cd71269d383a8ffe90d68 (patch) | |
tree | d6a79956563a86ebc3ae49236334d28ce56c8146 /config.tests | |
parent | 1e4673e8b0a88e017f66299208c688a6fd09cce5 (diff) |
x86/RDSEED: Work around QNX compiler missing the rdseed intrinsic
Since it's no big deal, we can disable this. Making it use rdseed via
inline assembly or detect when the compiler is fixed is Someone Else's
Problem.
Fixes: QTBUG-104697
Change-Id: I89c4eb48af38408daa7cfffd16feabb5408e2fbf
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/x86intrin/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config.tests/x86intrin/main.cpp b/config.tests/x86intrin/main.cpp index 4306a4721c..297586fb4e 100644 --- a/config.tests/x86intrin/main.cpp +++ b/config.tests/x86intrin/main.cpp @@ -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) |