OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [compat/] [vector-2b_main.c] - Blame information for rev 816

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-skip-if "test AVX support" { ! { i?86-*-* x86_64-*-* } } } */
2
/* { dg-require-effective-target avx } */
3
 
4
/* Test compatibility of vector types: layout between separately-compiled
5
   modules, parameter passing, and function return.  This test uses
6
   vectors of floating points values.  */
7
 
8
#include "cpuid.h"
9
 
10
extern void vector_2_x (void);
11
extern void exit (int);
12
int fails;
13
 
14
int
15
main ()
16
{
17
  unsigned int eax, ebx, ecx, edx;
18
 
19
  if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
20
    return 0;
21
 
22
  /* Run AVX vector test only if host has AVX support.  */
23
  if (ecx & bit_AVX)
24
    vector_2_x ();
25
 
26
  exit (0);
27
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.