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-1.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-gimple" } */
3
 
4
 
5
/* We should be able to produce a BIT_FIELD_REF for each of these vector access. */
6
#define vector __attribute__((vector_size(16)))
7
float f0(vector float t)
8
{
9
  return ((float*)&t)[0];
10
}
11
 
12
float f1(vector float t)
13
{
14
  return ((float*)&t)[1];
15
}
16
 
17
float f2(vector float t)
18
{
19
  return ((float*)&t)[2];
20
}
21
 
22
float f3(vector float t)
23
{
24
  return ((float*)&t)[3];
25
}
26
 
27
 
28
/* { dg-final { scan-tree-dump-times "BIT_FIELD_REF" 4 "gimple"} } */
29
 
30
/* { dg-final { cleanup-tree-dump "gimple" } } */
31
 
32
 

powered by: WebSVN 2.1.0

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