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