gcc/testsuite/ChangeLog: PR tree-optimization/98084 * gcc.dg/tree-ssa/pr98094.c: New test. --- gcc/testsuite/gcc.dg/tree-ssa/pr98094.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/pr98094.c
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr98094.c b/gcc/testsuite/gcc.dg/tree-ssa/pr98094.c new file mode 100644 index 00000000000..f88534a1691 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr98094.c @@ -0,0 +1,21 @@ +/* PR tree-optimization/98084 */ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +struct +{ + unsigned a : 10; +} b; + +int c; +void e(); +void d () +{ + c = b.a; + if (c == 8 || c == 0) + ; + else if (c > 8 * 8) + ; + else if (c < 8 * 8) + e (); +} -- 2.29.2