Commit 745b4512 by Georg-Johann Lay Committed by Georg-Johann Lay

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
parent 8db9d05e
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
* gcc.dg/tree-ssa/pr66449.c [long != pointer]: Use intptr_t if. * 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/pr70919.c [int <= 2]: Use 32-bit int as needed.
* gcc.dg/tree-ssa/pr71408.c: Same. * 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 * gcc.dg/tree-ssa/ssa-dom-thread-8.c (f2) [long != pointer]: Use
uintptr_t instead of long for int representation of address. uintptr_t instead of long for int representation of address.
* gcc.dg/tree-ssa/tailcall-7-run.c: Require trampolines. * gcc.dg/tree-ssa/tailcall-7-run.c: Require trampolines.
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-original" } */ /* { dg-options "-O -fdump-tree-original" } */
#if __SIZEOF_INT__ < 4
#define unsigned __UINT32_TYPE__
#endif
unsigned f(unsigned x) unsigned f(unsigned x)
{ {
return (x >> 29) & 32; return (x >> 29) & 32;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment