From a3ffa866e3559feedee82a34adcb0ee216f6bdde Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Thu, 29 Oct 2020 10:14:10 -0400 Subject: [PATCH] Add testcase for PR97596 Add testcase gcc/testsuite * gcc.dg/pr97596.c: New. --- gcc/testsuite/gcc.dg/pr97596.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/pr97596.c 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; +} -- 2.30.2