re PR testsuite/52641 (Test cases fail for 16-bit int targets)
authorGeorg-Johann Lay <avr@gjlay.de>
Thu, 22 Dec 2016 15:02:43 +0000 (15:02 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Thu, 22 Dec 2016 15:02:43 +0000 (15:02 +0000)
gcc/testsuite/
PR testsuite/52641
* gcc.dg/fold-and-rshift-2.c [int <= 2]: Use 32-bit int as needed.

From-SVN: r243889

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-and-rshift-2.c

index 368f7eaceb164dcff8cc7695c8d1f1fa8f7f373e..439bcbf0b73875b318fdd0e63a26b9da271624dc 100644 (file)
@@ -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.
index f88d48dc34a26cbd8f422675269658f6155a0963..74edf42e481d63f815716190d3dc44bd27d4f9a9 100644 (file)
@@ -1,6 +1,10 @@
 /* { dg-do compile } */\r
 /* { dg-options "-O -fdump-tree-original" } */\r
 \r
+#if __SIZEOF_INT__ < 4\r
+#define unsigned __UINT32_TYPE__\r
+#endif\r
+\r
 unsigned f(unsigned x)\r
 {\r
        return (x >> 29) & 32;\r