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
PR inline-asm/84742
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr66768.c
blob
9a8ad1f5ca1e6337d2ad537a3f436f997d080da2
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
4
typedef
__seg_gs
struct
foo_s
{
5
int
a
[
20
];
6
}
foo_t
;
7
8
int
sum
(
void
)
9
{
10
const
foo_t
*
p
= (
const
foo_t
*)
0x1234
;
11
int
i
,
total
=
0
;
12
for
(
i
=
0
;
i
<
20
;
i
++)
13
total
+=
p
->
a
[
i
];
14
return
total
;
15
}
16
17
/* { dg-final { scan-assembler "add*.\[ \t\]%gs:" } } */