From: Georg-Johann Lay Date: Thu, 22 Dec 2016 15:02:43 +0000 (+0000) Subject: re PR testsuite/52641 (Test cases fail for 16-bit int targets) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=745b451267cc14759724f3b03bbe12e2335aa5e8;p=gcc.git re PR testsuite/52641 (Test cases fail for 16-bit int targets) gcc/testsuite/ PR testsuite/52641 * gcc.dg/fold-and-rshift-2.c [int <= 2]: Use 32-bit int as needed. From-SVN: r243889 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 368f7eaceb1..439bcbf0b73 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -50,6 +50,7 @@ * gcc.dg/tree-ssa/pr66449.c [long != pointer]: Use intptr_t if. * gcc.dg/tree-ssa/pr70919.c [int <= 2]: Use 32-bit int as needed. * gcc.dg/tree-ssa/pr71408.c: Same. + * gcc.dg/fold-and-rshift-2.c: Same. * gcc.dg/tree-ssa/ssa-dom-thread-8.c (f2) [long != pointer]: Use uintptr_t instead of long for int representation of address. * gcc.dg/tree-ssa/tailcall-7-run.c: Require trampolines. diff --git a/gcc/testsuite/gcc.dg/fold-and-rshift-2.c b/gcc/testsuite/gcc.dg/fold-and-rshift-2.c index f88d48dc34a..74edf42e481 100644 --- a/gcc/testsuite/gcc.dg/fold-and-rshift-2.c +++ b/gcc/testsuite/gcc.dg/fold-and-rshift-2.c @@ -1,6 +1,10 @@ /* { dg-do compile } */ /* { dg-options "-O -fdump-tree-original" } */ +#if __SIZEOF_INT__ < 4 +#define unsigned __UINT32_TYPE__ +#endif + unsigned f(unsigned x) { return (x >> 29) & 32;