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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [arm/] [pr42574.c] - Blame information for rev 714

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-options "-mthumb -Os -fpic" }  */
2
/* { dg-require-effective-target arm_thumb1_ok } */
3
/* { dg-require-effective-target fpic } */
4
/* Make sure the address of glob.c is calculated only once and using
5
   a logical shift for the offset (200<<1).  */
6
/* { dg-final { scan-assembler-times "lsl" 1 } } */
7
 
8
struct A {
9
 char a[400];
10
 float* c;
11
};
12
struct A glob;
13
void func();
14
void func1(float*);
15
int func2(float*, int*);
16
void func3(float*);
17
 
18
void test(int *p) {
19
 func1(glob.c);
20
 if (func2(glob.c, p)) {
21
   func();
22
 }
23
 func3(glob.c);
24
}

powered by: WebSVN 2.1.0

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