re PR tree-optimization/91632 (Probably wrong code since r275026)

PR tree-optimization/91632
	* gcc.c-torture/execute/pr91632.c: New test.

From-SVN: r275318
This commit is contained in:
Jakub Jelinek 2019-09-02 15:35:54 +02:00 committed by Jakub Jelinek
parent 2b196fb76e
commit 1525fa83cc
2 changed files with 35 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2019-09-02 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/91632
* gcc.c-torture/execute/pr91632.c: New test.
2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/tree-ssa/slsr-42.c: New test.

View File

@ -0,0 +1,30 @@
/* PR tree-optimization/91632 */
/* { dg-additional-options "-fwrapv" } */
static int
__attribute__((noipa))
foo (char x)
{
switch (x)
{
case '"':
case '<':
case '>':
case '\\':
case '^':
case '`':
case '{':
case '|':
case '}':
return 0;
}
return 1;
}
int
main ()
{
if (foo ('h') == 0)
__builtin_abort ();
return 0;
}