OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [vector-4.c] - Diff between revs 297 and 338

Only display areas with differences | Details | Blame | View Log

Rev 297 Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-mavx" { target { i?86-*-* x86_64-*-* } } } */
/* { dg-options "-mavx" { target { i?86-*-* x86_64-*-* } } } */
 
 
/* Make sure that vector of size 8 of signed char works. This used to crash with AVX on x86
/* Make sure that vector of size 8 of signed char works. This used to crash with AVX on x86
   as we would produce try to extract the chars inside the vector mode using the vector mode of V8SI
   as we would produce try to extract the chars inside the vector mode using the vector mode of V8SI
   which was wrong. */
   which was wrong. */
__attribute__ ((vector_size (8))) signed char v4, v5, v6;
__attribute__ ((vector_size (8))) signed char v4, v5, v6;
void
void
two (void)
two (void)
{
{
 v4 = v5 + v6;
 v4 = v5 + v6;
}
}
 
 
 
 

powered by: WebSVN 2.1.0

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