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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [pr17055-1.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* PR middle-end/17055.  */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -ffast-math" } */
4
/* { dg-options "-O2 -ffast-math -fno-common" { target hppa*-*-hpux* } } */
5
 
6
/* This test used to abort, beacuse we do an "integer" fold to zero, i.e.
7
   x - x = (T)0 where T is the type of x.  Unfortunately, fold_convert
8
   was unable to convert integer_zero_node to the appropriate vector type.  */
9
 
10
typedef float v4sf __attribute__((vector_size(16)));
11
typedef int v4si __attribute__((vector_size(16)));
12
 
13
v4sf ivf, ovf;
14
v4si ivi, ovi;
15
 
16
void testf (void)
17
{
18
  ovf = ivf - ivf;
19
}
20
 
21
void testi (void)
22
{
23
  ovi = ivi - ivi;
24
}
25
 

powered by: WebSVN 2.1.0

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