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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [struct/] [w_prof_single_str_global.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
#include <stdlib.h>
2
typedef struct
3
{
4
  int a;
5
  int b;
6
}str_t;
7
 
8
#define N 3
9
 
10
str_t str;
11
 
12
int
13
main ()
14
{
15
  int i;
16
  int res = 1<<(1<<N);
17
  str.a = 2;
18
 
19
  for (i = 0; i < N; i++)
20
      str.a = str.a * str.a;
21
 
22
  if (str.a != res)
23
    abort ();
24
 
25
  /* POSIX ignores all but the 8 low-order bits, but other
26
     environments may not.  */
27
  return (str.a & 255);
28
}
29
 
30
/*--------------------------------------------------------------------------*/
31
/* { dg-final-use { scan-ipa-dump "Number of structures to transform is 1" "ipa_struct_reorg" { xfail { "avr-*-*" } } } } */
32
/* { dg-final-use { cleanup-ipa-dump "*" } } */
33
 

powered by: WebSVN 2.1.0

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