From: Andrew Pinski Date: Wed, 3 Aug 2016 22:37:53 +0000 (+0000) Subject: 20160802-1.c: New testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac2c96ab1233e1c3dcd29a4854ae4eb7d0f68199;p=gcc.git 20160802-1.c: New testcase. 2016-08-03 Andrew Pinski * gcc.c-torture/compile/20160802-1.c: New testcase. From-SVN: r239099 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cafdb6d29e5..e7911239d55 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-08-03 Andrew Pinski + + * gcc.c-torture/compile/20160802-1.c: New testcase. + 2016-08-03 Fritz Reese * gfortran.dg/dec_intrinsic_ints.f90: New testcase. diff --git a/gcc/testsuite/gcc.c-torture/compile/20160802-1.c b/gcc/testsuite/gcc.c-torture/compile/20160802-1.c new file mode 100644 index 00000000000..f7a83dc73dc --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20160802-1.c @@ -0,0 +1,13 @@ +long g (long width, unsigned long byte) { + long r_hi = 0; + unsigned long r_lo = 0; + int s; + for (s = 0; s < width; s += 8) + { + int d = width - s - 8; + if (s < (8 * 8)) + r_hi |= byte << (d - (8 * 8)); + } + return r_lo + r_hi; +} +