diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr70110.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr70110.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr70110.c b/gcc/testsuite/gcc.dg/pr70110.c new file mode 100644 index 0000000..42bbe3a --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr70110.c @@ -0,0 +1,39 @@ +/* PR target/70110 */ +/* { dg-do compile } */ +/* { dg-options "-O3" } */ +/* { dg-additional-options "-msse2" { target i?86-*-* x86_64-*-* } } */ + +int a, c, d, f, h; +long long b; + +static inline void +foo (void) +{ + if (a) + foo (); + b = c; +} + +static inline void +bar (int p) +{ + if (p) + f = 0; + b |= c; +} + +void +baz (int g, int i) +{ + for (b = d; (d = 1) != 0; ) + { + if (a) + foo (); + b |= c; + bar (h); + bar (g); + bar (h); + bar (i); + bar (h); + } +} |