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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [microblaze/] [others/] [sdata_var6.c] - Blame information for rev 697

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-options "-mxl-gp-opt -G 16" } */
2
 
3
struct test_s {
4
    int a;
5
    int b;
6
    int c;
7
    int d;
8
};
9
 
10
/* { dg-final { scan-assembler "\.sdata2" } } */
11
const struct test_s global1 = { 1, 2, 3, 4};
12
extern const struct test_s global2;
13
 
14
int testfunc ()
15
{
16
/* { dg-final { scan-assembler "\lwi\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r2" } } */
17
    return global2.a + global1.a;
18
}

powered by: WebSVN 2.1.0

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