2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr78911-2.c
blobaef9eece85318040c531095411ccdc8fdf798ad1
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-omit-frame-pointer" } */
3 /* { dg-additional-options "-fPIC" { target fpic } } */
4 /* { dg-additional-options "-march=i686" { target ia32 } } */
6 long long *a, *b, c;
7 int d, e;
8 int baz (void);
10 static inline long long
11 foo (long long *x)
13 return __sync_val_compare_and_swap (x, 0, 0);
16 void
17 bar ()
19 int f = baz ();
20 c = foo (&a[f]);
21 if (c)
22 e = d;
23 a = b;