[testsuite] Skip some more tests for targets with int size < 32

Message ID 878tyfg6v5.fsf@atmel.com
State New
Headers show

Commit Message

Senthil Kumar Selvaraj June 8, 2016, 1:14 p.m.
Hi,

  This patch requires int32plus support for a few more tests - these
  were failing for the avr target.

  bswap-2.c uses left shifts wider than 16 bits on a char, and
  pr68067-{1,2} use an out of range negative number (INT_MIN for 32 bit int).

  If this is ok, could someone commit please? I don't have commit access.

Regards
Senthil

gcc/testsuite/ChangeLog

2016-06-08  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	* gcc.c-torture/execute/bswap-2.c: Require int32plus.
	*	gcc.dg/torture/pr68067-1.c: Likewise.
	* gcc.dg/torture/pr68067-2.c: Likewise.

Comments

Mike Stump June 9, 2016, 2:34 p.m. | #1
On Jun 8, 2016, at 6:14 AM, Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> wrote:
> 
>  This patch requires int32plus support for a few more tests - these
>  were failing for the avr target.

>  If this is ok, could someone commit please? I don't have commit access.

Ok.

Committed revision 237266.

> 2016-06-08  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
> 
> 	* gcc.c-torture/execute/bswap-2.c: Require int32plus.
> 	* gcc.dg/torture/pr68067-1.c: Likewise.
> 	* gcc.dg/torture/pr68067-2.c: Likewise.

Patch

diff --git gcc/testsuite/gcc.c-torture/execute/bswap-2.c gcc/testsuite/gcc.c-torture/execute/bswap-2.c
index 88132fe..63e7807 100644
--- gcc/testsuite/gcc.c-torture/execute/bswap-2.c
+++ gcc/testsuite/gcc.c-torture/execute/bswap-2.c
@@ -1,3 +1,5 @@ 
+/* { dg-require-effective-target int32plus } */
+
 #ifdef __UINT32_TYPE__
 typedef __UINT32_TYPE__ uint32_t;
 #else
diff --git gcc/testsuite/gcc.dg/torture/pr68067-1.c gcc/testsuite/gcc.dg/torture/pr68067-1.c
index a7b6aa0..f8ad3ca 100644
--- gcc/testsuite/gcc.dg/torture/pr68067-1.c
+++ gcc/testsuite/gcc.dg/torture/pr68067-1.c
@@ -1,4 +1,5 @@ 
 /* { dg-do run } */
+/* { dg-require-effective-target int32plus } */
 
 int main()
 {
diff --git gcc/testsuite/gcc.dg/torture/pr68067-2.c gcc/testsuite/gcc.dg/torture/pr68067-2.c
index 38a459b..e03bf22 100644
--- gcc/testsuite/gcc.dg/torture/pr68067-2.c
+++ gcc/testsuite/gcc.dg/torture/pr68067-2.c
@@ -1,4 +1,5 @@ 
 /* { dg-do run } */
+/* { dg-require-effective-target int32plus } */
 
 int main()
 {