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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [vector-2.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-w -O1 -fdump-tree-optimized" } */
3
 
4
#define vector __attribute__(( vector_size(16) ))
5
 
6
float f(vector float a, int b, vector float c)
7
{
8
  vector float dd = c*a;
9
  a = (vector float){0,0,0,0};
10
  c = (vector float){0,0,0,0};
11
  {
12
   float d = ((float*)&a)[0];
13
   float d1 = ((float*)&c)[0];
14
   return d*d1;
15
  }
16
}
17
 
18
/* We should be able to optimize this to just "return 0.0;" */
19
/* { dg-final { scan-tree-dump-times "BIT_FIELD_REF" 0 "optimized"} } */
20
/* { dg-final { scan-tree-dump-times "0.0" 1 "optimized"} } */
21
 
22
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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