diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/pr78229.C')
-rw-r--r-- | gcc/testsuite/g++.dg/pr78229.C | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/pr78229.C b/gcc/testsuite/g++.dg/pr78229.C new file mode 100644 index 00000000000..a52141b6b83 --- /dev/null +++ b/gcc/testsuite/g++.dg/pr78229.C @@ -0,0 +1,24 @@ +/* { dg-do compile { target x86_64-*-* i?86-*-* } } */ +/* { dg-options "-O2 -mbmi -w" } */ + +void a(); +inline int b(int c) { + int d = c; + return __builtin_ia32_tzcnt_u32(d); +} +struct e {}; +int f, g, h; +void fn3() { + float j; + &j; + { + e k; + while (h) { + if (g == 0) + continue; + int i = b(g); + f = i; + } + a(); + } +} |