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 tree-optimization/81303
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
guality
/
pr69244.c
blob
6fe14bd1471b8db94786c68cef4800b16133591d
1
/* PR debug/69244 */
2
/* { dg-do run } */
3
/* { dg-options "-g" } */
4
5
#include
"../nop.h"
6
7
union
U
{
float
f
;
int
i
; };
8
float
a
,
b
;
9
10
__attribute__
((
noinline
,
noclone
))
void
11
foo
(
void
)
12
{
13
asm
volatile
(
""
: :
"g"
(&
a
),
"g"
(&
b
) :
"memory"
);
14
}
15
16
int
17
main
()
18
{
19
float
e
=
a
;
20
foo
();
21
float
d
=
e
;
22
union
U p
;
23
p
.
f
=
d
+=
2
;
24
int
c
=
p
.
i
-
4
;
25
asm
(
NOP
: : :
"memory"
);
26
b
=
c
;
27
return
0
;
28
}
29
30
/* { dg-final { gdb-test 25 "c" "p.i-4" } } */