Add new test-case.

gcc/testsuite/ChangeLog:

	PR tree-optimization/98084
	* gcc.dg/tree-ssa/pr98094.c: New test.
This commit is contained in:
Martin Liska 2020-12-02 13:08:56 +01:00
parent a35d5e9365
commit d01ebe56c2
1 changed files with 21 additions and 0 deletions

View File

@ -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 ();
}