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/] [powerpc/] [ppc-sdata-2.c] - Blame information for rev 322

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 322 jeremybenn
/* { dg-do compile { target { { powerpc*-*-linux* && ilp32 } || { powerpc-*-eabi* } } } } */
2
/* { dg-options "-O2 -fno-common -G 8 -msdata=sysv" } */
3
/* { dg-require-effective-target nonpic } */
4
/* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata," } } */
5
/* { dg-final { scan-assembler-not "\\.section\[ \t\]\\.sdata2," } } */
6
/* { dg-final { scan-assembler "sdat@sdarel\\(13\\)" } } */
7
/* { dg-final { scan-assembler "sdat2@sdarel\\(13\\)" } } */
8
 
9
 
10
int sdat = 2;
11
const char sdat2[] = "1234";
12
 
13
const char * test (void)
14
{
15
  return sdat ? sdat2 : 0;
16
}

powered by: WebSVN 2.1.0

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