re PR testsuite/27274 (execution test of gcc.dg/i386-sse-9.c fails on non-SSE CPU)

2006-04-26  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/27274:
	* gcc.target/i386/sse-9.c: Include "../../gcc.dg/i386-cpuid.h".
	(main): Exit if processor doesn't support SSE.

From-SVN: r113296
This commit is contained in:
H.J. Lu 2006-04-27 06:13:40 +00:00 committed by H.J. Lu
parent 54468df782
commit ded5b063bb
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2006-04-26 H.J. Lu <hongjiu.lu@intel.com>
PR testsuite/27274:
* gcc.target/i386/sse-9.c: Include "../../gcc.dg/i386-cpuid.h".
(main): Exit if processor doesn't support SSE.
2006-04-26 David Edelsohn <edelsohn@gnu.org>
PR middle-end/27282

View File

@ -4,6 +4,7 @@
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include "../../gcc.dg/i386-cpuid.h"
int
main()
@ -12,6 +13,13 @@ main()
void *ptr;
int errors = 0;
const char test [] = "This is a test.";
unsigned long cpu_facilities;
cpu_facilities = i386_cpuid ();
if ((cpu_facilities & bit_SSE) != bit_SSE )
/* If host has no vector support, pass. */
exit (0);
for (alignment = 1; alignment <= (1 << 20); alignment += alignment)
{