mirror of git://gcc.gnu.org/git/gcc.git
re PR testsuite/50485 (gcc.target/i386/sse4_1-blendps.c fails spuriously on i686)
2011-09-28 Tom de Vries <tom@codesourcery.com> PR testsuite/50485 * gcc.target/i386/sse4_1-blendps.c: Include <stdlib.h>. (TEST): Initialize src3 with random floats. * gcc.target/i386/sse4_1-blendps-2.c (sse4_1_test): Remove field i from union src3. Initialize src3 with random floats. From-SVN: r179309
This commit is contained in:
parent
08c71c82b8
commit
9415cfddab
|
|
@ -1,3 +1,11 @@
|
||||||
|
2011-09-28 Tom de Vries <tom@codesourcery.com>
|
||||||
|
|
||||||
|
PR testsuite/50485
|
||||||
|
* gcc.target/i386/sse4_1-blendps.c: Include <stdlib.h>.
|
||||||
|
(TEST): Initialize src3 with random floats.
|
||||||
|
* gcc.target/i386/sse4_1-blendps-2.c (sse4_1_test): Remove field i from
|
||||||
|
union src3. Initialize src3 with random floats.
|
||||||
|
|
||||||
2011-09-27 Oleg Endo <oleg.endo@t-online.de>
|
2011-09-27 Oleg Endo <oleg.endo@t-online.de>
|
||||||
|
|
||||||
* gcc.target/sh/mfmovd.c: Extend list of supported targets.
|
* gcc.target/sh/mfmovd.c: Extend list of supported targets.
|
||||||
|
|
|
||||||
|
|
@ -53,14 +53,13 @@ sse4_1_test (void)
|
||||||
{
|
{
|
||||||
__m128 x;
|
__m128 x;
|
||||||
float f[4];
|
float f[4];
|
||||||
int i[4];
|
|
||||||
} src3;
|
} src3;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
init_blendps (src1.f, src2.f);
|
init_blendps (src1.f, src2.f);
|
||||||
|
|
||||||
for (i = 0; i < 4; i++)
|
for (i = 0; i < 4; i++)
|
||||||
src3.i[i] = (int) random ();
|
src3.f[i] = (int) random ();
|
||||||
|
|
||||||
/* Check blendps imm8, m128, xmm */
|
/* Check blendps imm8, m128, xmm */
|
||||||
for (i = 0; i < NUM; i++)
|
for (i = 0; i < NUM; i++)
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
#include <smmintrin.h>
|
#include <smmintrin.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define NUM 20
|
#define NUM 20
|
||||||
|
|
||||||
|
|
@ -66,6 +67,9 @@ TEST (void)
|
||||||
|
|
||||||
init_blendps (src1.f, src2.f);
|
init_blendps (src1.f, src2.f);
|
||||||
|
|
||||||
|
for (i = 0; i < 4; i++)
|
||||||
|
src3.f[i] = (int) random ();
|
||||||
|
|
||||||
/* Check blendps imm8, m128, xmm */
|
/* Check blendps imm8, m128, xmm */
|
||||||
for (i = 0; i < NUM; i++)
|
for (i = 0; i < NUM; i++)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue