[testsuite] Skip pr80170.c for non-ptr32plus targets

Message ID 87lgqvy6jf.fsf@microchip.com
State New
Headers show

Commit Message

Senthil Kumar Selvaraj April 20, 2017, 5:47 a.m.
Hi,

  The below patch skips gcc.dg/pr80170.c for targets with pointer size
  less than 32. The testcase uses pointer offsets that are 32 bit or
  higher, and this ends up triggering an ICE because a ptrofftype_p
  assert fires for non-ptr32 plus targets.

  Committed as obvious.

Regards
Senthil

gcc/testsuite/ChangeLog

2017-04-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	* gcc.dg/pr80170.c: Require ptr32plus.

Patch

Index: gcc.dg/pr80170.c
===================================================================
--- gcc.dg/pr80170.c	(revision 247010)
+++ gcc.dg/pr80170.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-fgimple -O2 -ftree-slp-vectorize" } */
+/* { dg-require-effective-target ptr32plus } *
 
 struct  A
 {