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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-fre-33.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-fre1-details" } */
3
/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
4
 
5
#define vector __attribute__((vector_size(16) ))
6
 
7
struct {
8
    float i;
9
    vector float global_res;
10
} s;
11
float x;
12
int main(int argc)
13
{
14
  vector float res = (vector float){0.0f,0.0f,0.0f,1.0f};
15
  res += (vector float){1.0f,2.0f,3.0f,4.0f};
16
  s.global_res = res;
17
  x = *((float*)&s.global_res + 1);
18
  return 0;
19
}
20
 
21
/* { dg-final { scan-tree-dump "Replaced BIT_FIELD_REF.*with 2" "fre1" } } */
22
/* { dg-final { cleanup-tree-dump "fre1" } } */

powered by: WebSVN 2.1.0

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