don't test always against gcc_s

instead test half of the time against gcc_s and the other half test
against the native operation (\*).

(\*) Not all the targets have available a native version of the
intrinsics under test. On those targets we'll end up testing our
implementation against itself half of the time. This is not much of a
problem because we do several quickcheck runs per intrinsic.
This commit is contained in:
Jorge Aparicio
2016-09-21 21:38:06 -05:00
parent 7a56ac6bb4
commit bc61db2e36
7 changed files with 141 additions and 106 deletions

View File

@@ -20,6 +20,9 @@ extern crate core;
#[cfg(test)]
extern crate gcc_s;
#[cfg(test)]
extern crate rand;
#[cfg(all(not(windows), not(target_os = "macos")))]
extern crate rlibc;