Skip to content

Commit 86d2189

Browse files
committed
[Test] Using different test for AVX512 and non variants
1 parent 38be181 commit 86d2189

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/xorshift.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@ TEST_F(TestSiPMXorshift256, Constructor) { uint64_t N = 10000000; }
1212
TEST_F(TestSiPMXorshift256, Seed) {
1313
sipm::SiPMRng::Xorshift256plus rng;
1414
static constexpr uint64_t seed = 1234567890UL; // Random seed
15+
#ifdef __AVX512F__
1516
static constexpr uint64_t expected[] = {3539951786562994468ULL, 16993425385450634633ULL, 12425995393443937258ULL,
1617
1971016958421006117ULL, 3113309500227661404ULL, 490387842609610270ULL,
1718
11577763190126509135ULL, 18038816835264277783ULL, 14056837810899630979ULL,
1819
8986600062506074549ULL};
20+
#else
1921

22+
static constexpr uint64_t expected[] = {2356680413504073166ULL, 6439555299326541142ULL, 13107374383302832124ULL,
23+
15371213951372998008ULL, 3598216317549022935ULL, 9944474804087195216ULL,
24+
1783072794770156681ULL, 9432686255404415156ULL, 5598578073076770953ULL,
25+
11053698116263360353};
26+
#endif
2027
rng.seed(seed);
2128
for (int j = 0; j < 10; ++j) {
2229
uint64_t x = rng();

0 commit comments

Comments
 (0)