aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_os_utils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reformat code with astyle + fix code styleTomasz Frydrych2017-05-011-2/+6
|
* Merge GH #915 Fix OS::get_processor_timestamp()Jack Lloyd2017-03-191-1/+2
|\
| * Fix OS::get_processor_timestamp() testsDaniel Neus2017-03-141-1/+2
| |
* | No C++ exceptions from cpu probe functions. See GH #920Jack Lloyd2017-03-191-4/+0
|/
* Fix test for 32-bit buildsJack Lloyd2017-01-281-2/+2
|
* Change meaning of get_processor_timestampJack Lloyd2017-01-271-12/+52
| | | | | | | | | | | Now let it return 0 if we have no hardware timestamp, and add OS::get_high_resolution_clock for best available clock. This is mainly because it's confusing for get_processor_timestamp to return something that is not a processor timestamp and because it simplifies adding cycles/byte output if we know that something is or is not a cycle counter. Also adds Windows SEH version of run_cpu_instruction_probe. Untested, uncompiled.
* Fix various SunCC and Solaris warnings and build problems.Jack Lloyd2017-01-241-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Based on build output sent by @noloader. If RLIMIT_MEMLOCK is not defined, assume regular user is not able to call mlock. This probably also affected Clang/GCC on Solaris. Work around resolution issue in SIMD_4x32 where it finds ambiguity between arg taking uint32_t and __m128i. This is probably some artifact of how SunCC represents vector types, and seems highly bogus in general but is easy to work around here. Change constructor taking a single value to instead be `SIMD_4x32::splat` function. The SIMD class is internal, so no API implications. Fix various warnings about lambda functions that were missing return types and which were not a single return statement. AIUI C++11 doesn't guarantee that lambda return type will be deduced in that situation, though in practice every compiler including SunCC seems to handle it. Disable AVX2 usage, since SunCC's intrinsics seem to be broken - its _mm_loadu_si256 takes non-const pointer. Rename a few variables in the tests to avoid shadowed var warnings.
* Skip instruction probe test where fn not implementedJack Lloyd2017-01-231-0/+5
|
* Add basic test for OS utilsJack Lloyd2017-01-221-0/+147
Mainly driven by missing test for OS::run_cpu_instruction_probe. Currently only works on x86 and ARM. Tested on x86-64 native and aarch64 qemu.