From: Richard Biener Date: Thu, 24 Sep 2020 11:27:49 +0000 (+0200) Subject: target/97192 - new testcase for fixed PR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8d5c28233f95e3474ee8cbc4d341cbb43ab7bb6;p=gcc.git target/97192 - new testcase for fixed PR This adds another testcase for the PR97085 fix. 2020-09-24 Richard Biener PR tree-optimization/97085 * gcc.dg/pr97192.c: New testcase. --- diff --git a/gcc/testsuite/gcc.dg/pr97192.c b/gcc/testsuite/gcc.dg/pr97192.c new file mode 100644 index 00000000000..16647ca67a3 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr97192.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ +/* { dg-options "-O -ftracer" } */ +/* { dg-additional-options "-mavx512vl" { target x86_64-*-* i?86-*-* } } */ + +typedef int __attribute__ ((__vector_size__ (32))) V; + +int a, b; +V v; + +int +foo (void) +{ + b -= 4 - !a; + V u = 0 != v == a; + return u[0]; +}