Commit 68872bed by Matthew Gretton-Dann Committed by Matthew Gretton-Dann

* gcc/testsuite/gcc.dg/torture/vec-cvt-1.c (FLTTEST): Call rand instead of random.

From-SVN: r182008
parent bc590dfb
2011-12-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* gcc.dg/torture/vec-cvt-1.c (FLTTEST): Call rand instead of random.
2011-12-05 Jakub Jelinek <jakub@redhat.com>
Eric Botcazou <ebotcazou@adacore.com>
......
......@@ -104,9 +104,9 @@ flttointtest##intt (void) \
abort (); \
for (i = 0; i < N; i++) \
{ \
unsigned long long r = random (); \
r = (r << 21) ^ (unsigned) random (); \
r = (r << 21) ^ (unsigned) random (); \
unsigned long long r = rand (); \
r = (r << 21) ^ (unsigned) rand (); \
r = (r << 21) ^ (unsigned) rand (); \
asm (""); \
f[i] = (r >> 59) / 32.0f + (__typeof (intt[0])) r; \
if (f[i] < fltmin) f[i] = fltmin; \
......@@ -157,9 +157,9 @@ inttoflttest##intt (void) \
} \
for (i = 0; i < N; i++) \
{ \
unsigned long long r = random (); \
r = (r << 21) ^ (unsigned) random (); \
r = (r << 21) ^ (unsigned) random (); \
unsigned long long r = rand (); \
r = (r << 21) ^ (unsigned) rand (); \
r = (r << 21) ^ (unsigned) rand (); \
asm (""); \
intt[i] = r; \
} \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment