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.target/] [m68k/] [20090709-1.c] - Blame information for rev 378

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 320 jeremybenn
/* { dg-do compile } */
2
/* There should be 3 occurrences of .LC0 in the code:
3
   one for the definition of "0",
4
   one for use in test1() and
5
   one for use in test2().
6
   FIXME: At the moment m68k GCC does not optimize test1() to nop
7
   for some reason.  */
8
/* { dg-final { scan-assembler-times ".LC0" 3 } } */
9
 
10
void dummy(char *arg);
11
 
12
void test1(void)
13
{
14
  char tmp[2] = "0";
15
}
16
 
17
void test2(void)
18
{
19
  dummy("0");
20
}

powered by: WebSVN 2.1.0

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