From: Andrew MacLeod Date: Thu, 29 Oct 2020 14:14:10 +0000 (-0400) Subject: Add testcase for PR97596 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3ffa866e3559feedee82a34adcb0ee216f6bdde;p=gcc.git Add testcase for PR97596 Add testcase gcc/testsuite * gcc.dg/pr97596.c: New. --- diff --git a/gcc/testsuite/gcc.dg/pr97596.c b/gcc/testsuite/gcc.dg/pr97596.c new file mode 100644 index 00000000000..4a1c91d216a --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr97596.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +void +q8 (__int128 *uv, unsigned short int nf) +{ + __int128 i4; + + i4 = -nf; + if (i4 << 1 != 0) + *uv += nf; +}