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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [ppc-sdata-1.c] - Blame information for rev 867

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

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

powered by: WebSVN 2.1.0

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