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/] [fre-vce-1.c] - Rev 298

Compare with Previous | Blame | View Log

/* { dg-options "-O2 -fdump-tree-fre -w" } */
/* { dg-do compile } */
#define vector __attribute__((vector_size(sizeof(int)*4) ))
struct s { vector int i; };
vector float f(struct s *sv)
{
  sv->i = (vector int){1, 2, 3, 4};
  return (vector float)sv->i;
}
 
 
vector float f1(struct s *sv, vector int a)
{
  sv->i = a;
  return (vector float)sv->i;
}
 
struct s1 { int i; };
 
void g(struct s1 *, float);
void a1 (struct s1 sv)
{
  sv.i = 1;
  g(&sv, *(float*)&sv.i);
}
 
 
void a2 (struct s1 sv, int i)
{
  sv.i = i;
  g(&sv, *(float*)&sv.i);
}
 
/* { dg-final { scan-tree-dump-times "sv_\[0-9\]\\\(D\\\)->i" 2 "fre" } } */
/* We can't value-number *(float *)&sv.i as VIEW_CONVERT_EXPR of the
   value of sv.i.  */
/* { dg-final { scan-tree-dump-times "sv.i" 2 "fre" { xfail *-*-* } } } */
/* { dg-final { cleanup-tree-dump "fre" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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