From d01ebe56c2f54bf4ac91ce389ecef734f557ea3e Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 2 Dec 2020 13:08:56 +0100 Subject: [PATCH] Add new test-case. 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.30.2