Bug 52641 - Test cases fail for 16-bit int targets
Summary: Test cases fail for 16-bit int targets
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 14.0
: P5 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: testsuite-fail
Depends on:
Blocks:
 
Reported: 2012-03-20 19:35 UTC by Georg-Johann Lay
Modified: 2024-10-02 17:16 UTC (History)
2 users (show)

See Also:
Host:
Target: avr, m32c, m68k, stormy16, cr16, pdp11, h8300, rl78
Build:
Known to work:
Known to fail:
Last reconfirmed: 2012-03-20 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georg-Johann Lay 2012-03-20 19:35:21 UTC
Many test cases fail because they assume sizeof(int) >= 4.

This PR is not for one specific test case, it's to have a PR to file respective fixes as new test cases enter the test suite.
Comment 1 Georg-Johann Lay 2012-03-20 19:38:57 UTC
Author: gjl
Date: Tue Mar 20 19:38:51 2012
New Revision: 185588

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185588
Log:
	PR testsuite/52641
	* gcc.dg/torture/pr48124-1.c: Add dg-require-effective-target
	int32plus.
	* gcc.dg/torture/pr48124-4.c: Ditto:
	* gcc.dg/torture/pr52530.c: Use long instead of int if int=16.
	


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/torture/pr48124-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr48124-4.c
    trunk/gcc/testsuite/gcc.dg/torture/pr52530.c
Comment 2 Georg-Johann Lay 2012-03-21 10:48:13 UTC
Author: gjl
Date: Wed Mar 21 10:48:08 2012
New Revision: 185602

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185602
Log:
	PR testsuite/52641
	* gcc.dg/misaligned-expand-1.c (cst): Cast to int.
	* gcc.dg/misaligned-expand-2.c (cst): Likewise.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/misaligned-expand-1.c
    trunk/gcc/testsuite/gcc.dg/misaligned-expand-2.c
Comment 3 Hans-Peter Nilsson 2012-03-21 17:46:17 UTC
FWIW, m68k if only for its option -mshort; by default that port has 32-bit integers.
Comment 4 Georg-Johann Lay 2012-04-24 17:08:28 UTC
Author: gjl
Date: Tue Apr 24 17:08:20 2012
New Revision: 186775

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186775
Log:
	PR testsuite/52641
	PR tree-optimizations/52891
	* gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int.


Modified:
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/compile/pr52891-2.c
Comment 5 Georg-Johann Lay 2012-04-24 17:19:03 UTC
Author: gjl
Date: Tue Apr 24 17:18:54 2012
New Revision: 186776

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186776
Log:
	PR testsuite/52641
	PR tree-optimizations/52891
	* gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.c-torture/compile/pr52891-2.c
Comment 6 Georg-Johann Lay 2012-05-16 12:46:41 UTC
Author: gjl
Date: Wed May 16 12:46:36 2012
New Revision: 187588

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187588
Log:
	PR testsuite/52641
	* gcc.dg/pr52549.c: Fix test for long != void*
	* gcc.c-torture/execute/pr52979-1.x: New file.
	* gcc.c-torture/execute/pr52979-2.x: New file.


Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr52979-1.x
    trunk/gcc/testsuite/gcc.c-torture/execute/pr52979-2.x
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/pr52549.c
Comment 7 Georg-Johann Lay 2012-11-23 10:08:54 UTC
Author: gjl
Date: Fri Nov 23 10:08:49 2012
New Revision: 193749

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193749
Log:
	PR testsuite/52641
	* gcc.dg/unroll_5.c: Add dg-require-effective-target int32plus.
	* gcc.dg/pr55150-1.c: Same.
	* gcc.dg/torture/pr54894.c: Add size32plus.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/pr55150-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr54894.c
    trunk/gcc/testsuite/gcc.dg/unroll_5.c
Comment 8 Georg-Johann Lay 2012-11-26 18:46:25 UTC
Author: gjl
Date: Mon Nov 26 18:46:12 2012
New Revision: 193826

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193826
Log:
	PR testsuite/52641
	* gcc.c-torture/execute/20120919-1.x: New file (int32plus).
	* gcc.dg/pr54676.c: Make work for 16-bit int.


Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/20120919-1.x
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/pr54676.c
Comment 9 Georg-Johann Lay 2013-03-04 11:12:42 UTC
Author: gjl
Date: Mon Mar  4 11:12:30 2013
New Revision: 196428

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196428
Log:
	PR testsuite/52641
	PR tree-optimization/52631
	* gcc.dg/tree-ssa/pr52631.c: Fix 16-bit int.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr52631.c
Comment 11 Jakub Jelinek 2013-08-29 13:15:01 UTC
Author: jakub
Date: Thu Aug 29 13:14:59 2013
New Revision: 202074

URL: http://gcc.gnu.org/viewcvs?rev=202074&root=gcc&view=rev
Log:
	Backported from mainline
	2013-07-22  Georg-Johann Lay  <avr@gjlay.de>

	PR testsuite/52641
	* gcc.dg/torture/pr57381.c: Add dg-require-effective-target int32plus.

	2013-05-27  Richard Biener  <rguenther@suse.de>

	PR middle-end/57381
	PR tree-optimization/57417
	* tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
	for unchanged base.
	(set_ssa_val_to): Compare addresses using
	get_addr_base_and_unit_offset.

	PR tree-optimization/57417
	* gcc.dg/torture/pr57417.c: New testcase.

	2013-05-23  Richard Biener  <rguenther@suse.de>

	PR middle-end/57381
	* gcc.dg/torture/pr57381.c: New testcase.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr57381.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/torture/pr57417.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_8-branch/gcc/tree-ssa-sccvn.c
Comment 12 Georg-Johann Lay 2016-12-21 13:50:43 UTC
Author: gjl
Date: Wed Dec 21 13:50:11 2016
New Revision: 243854

URL: https://gcc.gnu.org/viewcvs?rev=243854&root=gcc&view=rev
Log:
gcc/testsuite/
	PR testsuite/52641
	* gcc.dg/builtin-object-size-16.c (ia0, ia1, ia9): Handle case
	where neither short nor int has a size of 4; use long.
	* gcc.dg/builtin-object-size-17.c: Same.
	* gcc.dg/builtin-stringop-chk-1.c (test2) <struct S>: Use int32_t
	for components as 4 components are supposed to occupy 16 bytes.
	* gcc.dg/pr78408-1.c: Require target size32plus.
	* gcc.dg/pr78408-2.c: Same.
	* gcc.dg/tree-ssa/pr78428.c. Require target int32plus.
	* gcc.dg/tree-ssa/tailcall-7.c: Require target trampolines.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/builtin-object-size-16.c
    trunk/gcc/testsuite/gcc.dg/builtin-object-size-17.c
    trunk/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c
    trunk/gcc/testsuite/gcc.dg/pr78408-1.c
    trunk/gcc/testsuite/gcc.dg/pr78408-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr78428.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/tailcall-7.c
Comment 13 Georg-Johann Lay 2016-12-22 12:43:07 UTC
Author: gjl
Date: Thu Dec 22 12:42:35 2016
New Revision: 243885

URL: https://gcc.gnu.org/viewcvs?rev=243885&root=gcc&view=rev
Log:
gcc/testsuite/
	PR testsuite/52641
	* gcc.dg/pr35258.c (main) <temp>: Use an integer value that has
	at least a size of 4.
	* gcc.dg/Walloca-1.c (foo1): Use alloca with 30000 (instead of 90000).
	* gcc.dg/graphite/pr46185.c: Require int32plus, size32plus.
	* gcc.dg/graphite/isl-ast-op-select.c: Same.
	* gcc.dg/graphite/pr42205-1.c: Require int32plus.
	* gcc.dg/graphite/pr42221.c: Same.
	* gcc.dg/tree-ssa/pr65136.c: Same.
	* gcc.dg/tree-ssa/sra-20.c: Same.
	* gcc.dg/graphite/scop-0.c: Require size32plus.
	* gcc.dg/graphite/scop-22.c: Same.
	* gcc.dg/graphite/scop-3.c: Same.
	* gcc.dg/graphite/scop-dsyr2k.c: Same.
	* gcc.dg/graphite/scop-dsyrk.c: Same.
	* gcc.dg/graphite/scop-mvt.c: Same.
	* gcc.dg/graphite/scop-sor.c: Same.
	* gcc.dg/tree-ssa/pr68529-3.c: Same.
	* 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/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.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/Walloca-1.c
    trunk/gcc/testsuite/gcc.dg/graphite/isl-ast-op-select.c
    trunk/gcc/testsuite/gcc.dg/graphite/pr42205-1.c
    trunk/gcc/testsuite/gcc.dg/graphite/pr42221.c
    trunk/gcc/testsuite/gcc.dg/graphite/pr46185.c
    trunk/gcc/testsuite/gcc.dg/graphite/scop-0.c
    trunk/gcc/testsuite/gcc.dg/graphite/scop-22.c
    trunk/gcc/testsuite/gcc.dg/graphite/scop-3.c
    trunk/gcc/testsuite/gcc.dg/graphite/scop-dsyr2k.c
    trunk/gcc/testsuite/gcc.dg/graphite/scop-dsyrk.c
    trunk/gcc/testsuite/gcc.dg/graphite/scop-mvt.c
    trunk/gcc/testsuite/gcc.dg/graphite/scop-sor.c
    trunk/gcc/testsuite/gcc.dg/pr35258.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr65136.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr66449.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr68529-3.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr70919.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr71408.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/sra-20.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-8.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/tailcall-7-run.c
Comment 14 Georg-Johann Lay 2016-12-22 15:03:15 UTC
Author: gjl
Date: Thu Dec 22 15:02:43 2016
New Revision: 243889

URL: https://gcc.gnu.org/viewcvs?rev=243889&root=gcc&view=rev
Log:
gcc/testsuite/
	PR testsuite/52641
	* gcc.dg/fold-and-rshift-2.c [int <= 2]: Use 32-bit int as needed.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/fold-and-rshift-2.c
Comment 15 Georg-Johann Lay 2018-02-02 11:37:26 UTC
Author: gjl
Date: Fri Feb  2 11:36:54 2018
New Revision: 257327

URL: https://gcc.gnu.org/viewcvs?rev=257327&root=gcc&view=rev
Log:
	PR testsuite/52641
	* gcc.c-torture/execute/pr81913.c: Use types that also work for int16.
	* gcc.c-torture/execute/20180112-1.c: Dito.
	* gcc.c-torture/execute/pr81503.c: Dito.
	* gcc.dg/store_merging_12.c: Dito.
	* gcc.dg/tree-ssa/loop-niter-1.c: Dito.
	* gcc.dg/tree-ssa/loop-niter-2.c: Dito.
	* gcc.dg/tree-ssa/pr80898.c: Dito.
	* gcc.dg/tree-ssa/pr82363.c: Dito.
	* gcc.dg/utf16-4.c: Also allow "short unsigned int" in dg-warning.
	* gcc.dg/tree-ssa/pr81346-5.c: Special-case int16.
	* gcc.dg/tree-ssa/ssa-sink-11.c: Dito.
	* gcc.dg/tree-ssa/ssa-sink-12.c: Dito.
	* gcc.dg/torture/pr81814.c: Restrict to int32plus.
	* gcc.dg/tree-ssa/pr80803.c: Dito.
	* gcc.dg/tree-ssa/pr80898-2.c: Dito.
	* gcc.dg/tree-ssa/pr81346-4.c: Dito.
	* gcc.dg/tree-ssa/vrp114.c: Dito.
	* gcc.dg/tree-ssa/pr82574.c: Restrict to size32plus.
	* gcc.dg/tree-ssa/ssa-dom-thread-13.c: Dito.
	* gcc.dg/tree-ssa/ssa-sink-15.c: Dito.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.c-torture/execute/20180112-1.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr81503.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr81913.c
    trunk/gcc/testsuite/gcc.dg/store_merging_12.c
    trunk/gcc/testsuite/gcc.dg/torture/pr81814.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/loop-niter-1.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/loop-niter-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr80803.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr80898-2.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr80898.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr81346-4.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr81346-5.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr82363.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr82574.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-thread-13.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-11.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-12.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-sink-15.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/vrp114.c
    trunk/gcc/testsuite/gcc.dg/utf16-4.c
Comment 16 Georg-Johann Lay 2018-02-02 15:08:09 UTC
Author: gjl
Date: Fri Feb  2 15:07:37 2018
New Revision: 257333

URL: https://gcc.gnu.org/viewcvs?rev=257333&root=gcc&view=rev
Log:
	PR testsuite/52641
	* gcc.c-torture/execute/pr83362.c: Make work for int16.
	* gcc.dg/Wsign-conversion.c: Dito.
	* gcc.dg/attr-alloc_size-4.c: Dito.
	* gcc.dg/pr81020.c: Dito.
	* gcc.dg/pr81192.c: Dito.
	* gcc.dg/pr83463.c (dg-options): Add -Wno-pointer-to-int-cast.
	* gcc.dg/attr-alloc_size-11.c: Also special-case avr.
	* gcc.dg/pr83844.c: Restrict to int32plus.
	* gcc.dg/attr-alloc_size-3.c: Restrict to size32plus.
	* gcc.dg/tree-ssa/ldist-25.c: Dito.
	* gcc.dg/tree-ssa/ldist-27.c: Dito.
	* gcc.dg/tree-ssa/ldist-28.c: Dito.
	* gcc.dg/tree-ssa/ldist-29.c: Dito.
	* gcc.dg/tree-ssa/ldist-30.c: Dito.
	* gcc.dg/tree-ssa/ldist-31.c: Dito.
	* gcc.dg/tree-ssa/ldist-32.c: Dito.
	* gcc.dg/tree-ssa/ldist-33.c: Dito.
	* gcc.dg/tree-ssa/ldist-34.c: Dito.
	* gcc.dg/tree-ssa/ldist-35.c: Dito.
	* gcc.dg/tree-ssa/ldist-36.c: Dito.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.c-torture/execute/pr83362.c
    trunk/gcc/testsuite/gcc.dg/Wsign-conversion.c
    trunk/gcc/testsuite/gcc.dg/attr-alloc_size-11.c
    trunk/gcc/testsuite/gcc.dg/attr-alloc_size-3.c
    trunk/gcc/testsuite/gcc.dg/attr-alloc_size-4.c
    trunk/gcc/testsuite/gcc.dg/pr81020.c
    trunk/gcc/testsuite/gcc.dg/pr81192.c
    trunk/gcc/testsuite/gcc.dg/pr83463.c
    trunk/gcc/testsuite/gcc.dg/pr83844.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-25.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-27.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-28.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-29.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-30.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-31.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-32.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-33.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-34.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-35.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-36.c
Comment 17 Georg-Johann Lay 2019-10-18 06:46:36 UTC
Author: gjl
Date: Fri Oct 18 06:46:03 2019
New Revision: 277142

URL: https://gcc.gnu.org/viewcvs?rev=277142&root=gcc&view=rev
Log:
gcc/testsuite/
	Fix some fallout for small targets.

	PR testsuite/52641
	* gcc.c-torture/execute/20190820-1.c:
	Add dg-require-effective-target int32plus.
	* gcc.c-torture/execute/pr85331.c
	Add dg-require-effective-target double64plus.
	* gcc.dg/pow-sqrt-1.c: Same.
	* gcc.dg/pow-sqrt-2.c: Same.
	* gcc.dg/pow-sqrt-3.c: Same.
	* gcc.c-torture/execute/20190901-1.c: Same.
	* gcc.c-torture/execute/user-printf.c [avr]: Skip.
	* gcc.c-torture/execute/fprintf-2.c [avr]: Skip.
	* gcc.c-torture/execute/printf-2.c [avr]: Skip.
	* gcc.dg/Wlarger-than3.c [avr]: Skip.
	* gcc.c-torture/execute/ieee/20041213-1.c (sqrt)
	[avr,double=float]: Provide custom prototype.
	* gcc.dg/pr36017.c: Same.
	* gcc.c-torture/execute/pr90025.c: Use 32-bit int.
	* gcc.dg/complex-7.c: Add dg-require-effective-target double64.
	* gcc.dg/loop-versioning-1.c:
	Add dg-require-effective-target size32plus.
	* gcc.dg/loop-versioning-2.c: Same.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.c-torture/execute/20190820-1.c
    trunk/gcc/testsuite/gcc.c-torture/execute/20190901-1.c
    trunk/gcc/testsuite/gcc.c-torture/execute/fprintf-2.c
    trunk/gcc/testsuite/gcc.c-torture/execute/ieee/20041213-1.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr85331.c
    trunk/gcc/testsuite/gcc.c-torture/execute/pr90025.c
    trunk/gcc/testsuite/gcc.c-torture/execute/printf-2.c
    trunk/gcc/testsuite/gcc.c-torture/execute/user-printf.c
    trunk/gcc/testsuite/gcc.dg/Wlarger-than3.c
    trunk/gcc/testsuite/gcc.dg/complex-7.c
    trunk/gcc/testsuite/gcc.dg/loop-versioning-1.c
    trunk/gcc/testsuite/gcc.dg/loop-versioning-2.c
    trunk/gcc/testsuite/gcc.dg/pow-sqrt-1.c
    trunk/gcc/testsuite/gcc.dg/pow-sqrt-2.c
    trunk/gcc/testsuite/gcc.dg/pow-sqrt-3.c
    trunk/gcc/testsuite/gcc.dg/pr36017.c
Comment 18 Georg-Johann Lay 2019-10-21 06:55:13 UTC
Author: gjl
Date: Mon Oct 21 06:54:42 2019
New Revision: 277236

URL: https://gcc.gnu.org/viewcvs?rev=277236&root=gcc&view=rev
Log:
	Fix some fallout for small targets.
	PR testsuite/52641
	* gcc.dg/torture/pr86034.c: Use 32-bit base type for a bitfield of
	width > 16 bits.
	* gcc.dg/torture/pr90972.c [avr]: Add option "-w".
	* gcc.dg/torture/pr87693.c: Same.
	* gcc.dg/torture/pr91178.c: Add dg-require-effective-target size32plus.
	* gcc.dg/torture/pr91178-2.c: Same.
	* gcc.dg/torture/20181024-1.c
	* gcc.dg/torture/pr86554-1.c: Use 32-bit integers.
	* gcc.dg/tree-ssa/pr91091-1.c: Same.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/torture/20181024-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr86034.c
    trunk/gcc/testsuite/gcc.dg/torture/pr86554-1.c
    trunk/gcc/testsuite/gcc.dg/torture/pr87693.c
    trunk/gcc/testsuite/gcc.dg/torture/pr90972.c
    trunk/gcc/testsuite/gcc.dg/torture/pr91178-2.c
    trunk/gcc/testsuite/gcc.dg/torture/pr91178.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr91091-1.c
Comment 19 GCC Commits 2023-05-22 14:50:47 UTC
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:9f5065094c9632a50bea604d5896a139609e50cf

commit r14-1074-g9f5065094c9632a50bea604d5896a139609e50cf
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Mon May 22 16:47:56 2023 +0200

    testsuite/52641: Fix tests that fail for 16-bit int / pointer targets.
    
    gcc/testsuite/
            PR testsuite/52641
            * c-c++-common/pr19807-2.c: Use __SIZEOF_INT__ instead of 4.
            * gcc.c-torture/compile/pr103813.c: Require size32plus.
            * gcc.c-torture/execute/pr108498-2.c: Same.
            * gcc.c-torture/compile/pr96426.c: Condition on
            __SIZEOF_LONG_LONG__ == __SIZEOF_DOUBLE__.
            * gcc.c-torture/execute/pr103417.c: Require int32plus.
            * gcc.dg/pr104198.c: Same.
            * gcc.dg/pr21137.c: Same.
            * gcc.dg/pr88905.c: Same.
            * gcc.dg/pr90838.c: Same.
            * gcc.dg/pr97317.c: Same.
            * gcc.dg/pr100292.c: Require int32.
            * gcc.dg/pr101008.c: Same.
            * gcc.dg/pr96542.c: Same.
            * gcc.dg/pr96674.c: Same.
            * gcc.dg/pr97750.c: Require ptr_eq_long.
Comment 20 GCC Commits 2023-05-22 18:21:04 UTC
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:42d6b7d58caf7858704d93ce2f7a8cdf8a071e44

commit r14-1076-g42d6b7d58caf7858704d93ce2f7a8cdf8a071e44
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Mon May 22 20:14:51 2023 +0200

    testsuite/52641: Fix more of implicit int=32 assumption fallout.
    
    gcc/testsuite/
            PR testsuite/52641
            * gcc.c-torture/compile/pr108892.c: Require int32.
            * gcc.c-torture/compile/pr98199.c: Require int32plus.
            * gcc.dg/analyzer/call-summaries-pr107072.c: Same.
            * gcc.dg/analyzer/null-deref-pr105755.c: Same.
            * gcc.dg/tree-ssa/pr102232.c: Same.
            * gcc.dg/tree-ssa/pr105860.c: Same.
            * gcc.dg/tree-ssa/pr96730.c: Same.
            * gcc.dg/tree-ssa/pr96779-disabled.c: Same.
            * gcc.dg/tree-ssa/pr96779.c: Same.
            * gcc.dg/tree-ssa/pr98513.c: Same.
            * gcc.dg/tree-ssa/ssa-sink-18.c
            * gcc.dg/analyzer/coreutils-cksum-pr108664.c: Require int32plus,
            size24plus.
            * gcc.dg/analyzer/doom-s_sound-pr108867.c: Require size32plus.
            * gcc.dg/analyzer/malloc-CWE-590-examples.c: Same.
            * gcc.dg/debug/btf/btf-bitfields-4.c: Same.
            * gcc.dg/tree-ssa/pr93435.c: Same.
            * gcc.dg/analyzer/null-deref-pr102671-1.c: Require ptr_eq_long:
            * gcc.dg/analyzer/null-deref-pr102671-2.c: Same.
            * gcc.dg/analyzer/null-deref-pr108251-smp_fetch_ssl_fc_has_early-O2.c:
            Same.
            * gcc.dg/analyzer/null-deref-pr108251-smp_fetch_ssl_fc_has_early.c:
            Same.
            * gcc.dg/tree-ssa/pr103345.c: Use uint32_t.
            * gcc.dg/tree-ssa/ssa-ccp-41.c [sizeof(int)==2]: Same.
            * gcc.dg/tree-ssa/pr109031-1.c: Use uint16_t, uint32_t.
            * gcc.dg/tree-ssa/pr109031-2.c: Same.
            * gcc.dg/Warray-bounds-49.c (dg-warning): Discriminate int != short.
            * gcc.dg/Warray-bounds-52.c (dg-warning): Discriminate avr.
            * gcc.dg/Warray-bounds-33.c: Skip target avr.
            * gcc.dg/analyzer/fd-access-mode-target-headers.c: Same.
            * gcc.dg/analyzer/flex-with-call-summaries.c: Same.
            * gcc.dg/analyzer/isatty-1.c: Same.
            * gcc.dg/analyzer/pipe-glibc.c: Same.
Comment 21 GCC Commits 2023-05-30 20:05:37 UTC
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:e4c986fde56a6248f8fbe6cf0704e1da34b055d8

commit r14-1418-ge4c986fde56a6248f8fbe6cf0704e1da34b055d8
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Tue May 30 22:04:57 2023 +0200

    testsuite/52641: Fix more of implicit int=32 assumption fallout.
    
    gcc/testsuite/
            PR testsuite/52641
            * gcc.dg/torture/pr107451.c: Require int32plus.
            * gcc.dg/torture/pr108574-3.c: Use __INT32_TYPE__ instead of int.
            * gcc.dg/torture/pr109940.c: Use __INTPTR_TYPE__ instead of long.
            * gcc.dg/torture/pr95248.c: Require size24plus.
            * gcc.dg/torture/pr95295-3.c: Use var_* with at least 32 bits int.
            * gcc.dg/torture/pr98640.c: Cast to __INT32_TYPE__ instead of int.
            * gcc.dg/tree-ssa/pr103771.c: Use int with at least 32 bits.
Comment 22 GCC Commits 2024-01-07 12:44:53 UTC
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:c2e66755b6b6336dd5d93da3f4effb81d236397e

commit r14-6980-gc2e66755b6b6336dd5d93da3f4effb81d236397e
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Sat Jan 6 19:37:27 2024 +0100

    testsuite/52641: Fix sloppy tests that did not care for sizeof(int)=2 etc.
    
    gcc/testsuite/
            PR testsuite/52641
            * gcc.c-torture/compile/attr-complex-method-2.c [target=avr]: Check
            for "divsc3" as double = float per default.
            * gcc.c-torture/compile/pr106537-1.c: Use __INTPTR_TYPE__ instead of
            hard-coded "long".
            * gcc.c-torture/compile/pr106537-2.c: Same.
            * gcc.c-torture/compile/pr106537-3.c: Same.
            * gcc.c-torture/execute/20230630-3.c: Use __INT32_TYPE__ for bit-field
            wider than 16 bits.
            * gcc.c-torture/execute/20230630-4.c: Same.
            * gcc.c-torture/execute/pr109938.c: Require int32plus.
            * gcc.c-torture/execute/pr109986.c: Same.
            * gcc.dg/fold-ior-4.c: Same.
            * gcc.dg/fold-ior-5.c: Same
            * gcc.dg/fold-parity-5.c: Same.
            * gcc.dg/fold-popcount-5.c: Same.
            * gcc.dg/builtin-bswap-13.c [sizeof(int) < 4]: Use __INT32_TYPE__
            instead of int.
            * gcc.dg/builtin-bswap-14.c: Use __INT32_TYPE__ instead of int where
            required by code.
            * gcc.dg/c23-constexpr-9.c: Require large_double.
            * gcc.dg/c23-nullptr-1.c [target=avr]: xfail.
            * gcc.dg/loop-unswitch-10.c: Require size32plus.
            * gcc.dg/loop-unswitch-14.c: Same.
            * gcc.dg/loop-unswitch-11.c: Require int32.
            * gcc.dg/pr101836.c: Use __SIZEOF_INT instead of hard-coded 4.
            * gcc.dg/pr101836_1.c: Same.
            * gcc.dg/pr101836_2.c: Same.
            * gcc.dg/pr101836_3.c: Same.
Comment 23 GCC Commits 2024-01-07 12:44:58 UTC
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:7d60b1b78538c5606e8d35cdba8f565e7785d9c6

commit r14-6981-g7d60b1b78538c5606e8d35cdba8f565e7785d9c6
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Sun Jan 7 13:17:19 2024 +0100

    testsuite/52641: Fix fallout from sloppy tests.
    
    gcc/testsuite/
            PR testsuite/52641
            * gcc.dg/memchr-3.c [avr]: Anticipate -Wbuiltin-declaration-mismatch.
            * gcc.dg/pr103207.c: Use __INT32_TYPE__ instead of int.
            * gcc.dg/pr103451.c [void* != long]: Anticipate -Wpointer-to-int-cast.
            * gcc.dg/pr110496.c [void* != long]: Anticipate -Wint-to-pointer-cast.
            * gcc.dg/pr109977.c: Use __SIZEOF_DOUBLE__ instead of 8.
            * gcc.dg/pr110506-2.c: Use __UINT32_TYPE__ for uint32_t.
            * gcc.dg/pr110582.c: Require int32plus.
            * gcc.dg/pr111039.c: [sizeof(int) < 4]: Use __INT32_TYPE__.
            * gcc.dg/pr111599.c: Same.
            * gcc.dg/builtin-dynamic-object-size-0.c: Require size20plus.
            * gcc.dg/builtin-object-size-1.c [avr]: Skip tests with strndup.
            * gcc.dg/builtin-object-size-2.c: Same.
            * gcc.dg/builtin-object-size-3.c: Same.
            * gcc.dg/builtin-object-size-4.c: Same.
            * gcc.dg/pr111070.c: Use __UINTPTR_TYPE__ instead of unsigned long.
            * gcc.dg/debug/btf/btf-pr106773.c: Same.
            * gcc.dg/debug/btf/btf-bitfields-2.c: [sizeof(int) < 4]: Use
            __UINT32_TYPE__.
Comment 24 GCC Commits 2024-01-07 15:54:38 UTC
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:1c765016557eb8d4c576bfe22c10abf0b398fbab

commit r14-6982-g1c765016557eb8d4c576bfe22c10abf0b398fbab
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Sun Jan 7 16:53:21 2024 +0100

    testsuite/52641: Fix fallout from sloppy tests.
    
    gcc/testsuite/
            PR testsuite/52641
            * gcc.dg/torture/pr110838.c: Use proper shift offset to get MSB or int.
            * gcc.dg/torture/pr112282.c: Use at least 32 bits for :20 bit-fields.
            * gcc.dg/tree-ssa/bitcmp-5.c: Use integral type with 32 bits or more.
            * gcc.dg/tree-ssa/bitcmp-6.c: Same.
            * gcc.dg/tree-ssa/cltz-complement-max.c: Same.
            * gcc.dg/tree-ssa/cltz-max.c: Same.
            * gcc.dg/tree-ssa/if-to-switch-8.c: Use literals that fit int.
            * gcc.dg/tree-ssa/if-to-switch-9.c [avr]: Set case-values-threshold=3.
            * gcc.dg/tree-ssa/negneg-3.c: Discriminate [not] large_double.
            * gcc.dg/tree-ssa/phi-opt-25b.c: Use types of correct widths for
            __builtin_bswapN.
            * gcc.dg/tree-ssa/pr55177-1.c: Same.
            * gcc.dg/tree-ssa/popcount-max.c: Use int32_t where required.
            * gcc.dg/tree-ssa/pr111583-1.c: Use intptr_t as needed.
            * gcc.dg/tree-ssa/pr111583-2.c: Same.
Comment 25 GCC Commits 2024-07-01 11:07:59 UTC
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:90c558ef740d0b98892b6a7811c278eda8adeea3

commit r15-1749-g90c558ef740d0b98892b6a7811c278eda8adeea3
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Mon Jul 1 12:10:50 2024 +0200

    testsuite/52641 - Adjust some test cases to less capable platforms.
    
            PR testsuite/52641
    gcc/testsuite/
            * gcc.dg/analyzer/pr109577.c: Use __SIZE_TYPE__ instead of "unsigned long".
            * gcc.dg/analyzer/pr93032-mztools-signed-char.c: Requires int32plus.
            * gcc.dg/analyzer/pr93032-mztools-unsigned-char.c: Requires int32plus.
            * gcc.dg/analyzer/putenv-1.c: Skip on avr.
            * gcc.dg/torture/type-generic-1.c: Skip on avr.
Comment 26 GCC Commits 2024-07-06 13:17:14 UTC
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:bb16e3179e79e4307f1d834a02e63d0dfd817f67

commit r15-1873-gbb16e3179e79e4307f1d834a02e63d0dfd817f67
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Sat Jul 6 15:02:28 2024 +0200

    testsuite/52641 - Fix more sloppy tests.
    
            PR testsuite/52641
    gcc/testsuite/
            * gcc.dg/analyzer/torture/boxed-ptr-1.c: Requires size24plus.
            * gcc.dg/analyzer/torture/pr102692.c: Use intptr_t instead of long.
            * gcc.dg/ipa/pr102714.c: Use uintptr_t instead of unsigned long.
            * gcc.dg/torture/pr115387-1.c: Same.
            * gcc.dg/torture/pr113895-1.c : Same.
            * gcc.dg/ipa/pr108007.c: Require int32plus.
            * gcc.dg/ipa/pr109318.c: Same.
            * gcc.dg/ipa/pr96040.c: Use size_t instead of unsigned long.
            * gcc.dg/torture/pr113126.c: Use vectors of same dimension.
            * gcc.dg/tree-ssa/builtin-sprintf-9.c: Requires double64.
    
            * gcc.dg/spellcheck-inttypes.c [avr]: Avoid include of inttypes.h.
            * gcc.dg/analyzer/torture/pr104159.c [avr]: Skip.
            * gcc.dg/torture/pr84682-2.c [avr]: Skip.
            * gcc.dg/wtr-conversion-1.c [avr]: Remove avr selector since
            long double is a 64-bit type by now.
Comment 27 GCC Commits 2024-10-02 14:56:25 UTC
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:875a1df8130342baf985650c5de1914cf37eb774

commit r15-4029-g875a1df8130342baf985650c5de1914cf37eb774
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Wed Oct 2 16:23:32 2024 +0200

    testsuite/52641 - Fix gcc.dg/signbit-6.c for int != 32-bit targets.
    
            PR testsuite/52641
    gcc/testsuite/
            * gcc.dg/signbit-6.c (main): Initialize a[0] and b[0]
            with INT32_MIN (instead of with INT_MIN).
Comment 28 GCC Commits 2024-10-02 15:21:02 UTC
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:5bf78cf0a2a7fe999562fcef7bad0d9631af9742

commit r15-4030-g5bf78cf0a2a7fe999562fcef7bad0d9631af9742
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Wed Oct 2 17:16:55 2024 +0200

    testsuite/52641 - Require int32 for gcc.dg/pr93820-2.c.
    
            PR testsuite/52641
    gcc/testsuite/
            * gcc.dg/pr93820-2.c: Add dg-require-effective-target int32.
Comment 29 GCC Commits 2024-10-02 17:16:03 UTC
The master branch has been updated by Georg-Johann Lay <gjl@gcc.gnu.org>:

https://gcc.gnu.org/g:77c3ef08e946306329070ea6415abe7d9e328cd6

commit r15-4032-g77c3ef08e946306329070ea6415abe7d9e328cd6
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Wed Oct 2 19:09:18 2024 +0200

    testsuite/52641 - Make gcc.dg/strict-flex-array-3.c work on int != 32 bits.
    
            PR testsuite/52641
    gcc/testsuite/
            * gcc.dg/strict-flex-array-3.c (expect) [AVR]: Use custom
            version due to AVR-LibC limitations.
            (stuff): Use __SIZEOF_INT__ instead of hard-coded values.