URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gcc.dg/] [compat/] [vector-1b_main.c] - Rev 516
Compare with Previous | Blame | View Log
/* { dg-skip-if "test AVX vector" { ! { i?86-*-* x86_64-*-* } } } */ /* { dg-require-effective-target avx } */ /* Test compatibility of vector types: layout between separately-compiled modules, parameter passing, and function return. This test uses vectors of integer values. */ #include "cpuid.h" extern void vector_1_x (void); extern void exit (int); int fails; int main () { unsigned int eax, ebx, ecx, edx; if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx)) return 0; /* Run AVX vector test only if host has AVX support. */ if (ecx & bit_AVX) vector_1_x (); exit (0); }