repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
nios2
/
gprel-offset.c
blob
05186c66adbb6965207b449a94f09af64eaaea1a
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
4
static struct
s
{
5
int
x
;
6
char
y
;
7
}
s
;
8
9
void
set
(
char
c
)
10
{
11
s
.
y
=
c
;
12
}
13
14
15
char
get
(
void
)
16
{
17
return
s
.
y
;
18
}
19
20
/* { dg-final { scan-assembler-times "%gprel\\(s\\+4\\)\\(gp\\)" 2 } } */