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.
This commit is contained in:
parent
11ef53f0e8
commit
9f5065094c
15 changed files with 18 additions and 2 deletions
|
@ -6,7 +6,7 @@ int i;
|
|||
int main()
|
||||
{
|
||||
int a[4];
|
||||
if ((char*)&a[1] + 4*i + 4 != (char*)&a[i+2])
|
||||
if ((char*)&a[1] + __SIZEOF_INT__*i + __SIZEOF_INT__ != (char*)&a[i+2])
|
||||
link_error();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* PR middle-end/103813 */
|
||||
/* { dg-require-effective-target size32plus } */
|
||||
|
||||
struct A { char b; char c[0x21000000]; };
|
||||
struct A d;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
/* PR middle-end/96426 */
|
||||
|
||||
#if __SIZEOF_LONG_LONG__ == __SIZEOF_DOUBLE__
|
||||
|
||||
typedef long long V __attribute__((vector_size(16)));
|
||||
typedef double W __attribute__((vector_size(16)));
|
||||
|
||||
|
@ -8,3 +10,5 @@ foo (V *v)
|
|||
{
|
||||
__builtin_convertvector (*v, W);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* PR tree-optimization/103417 */
|
||||
/* { dg-require-effective-target int32plus } */
|
||||
|
||||
struct { int a : 8; int b : 24; } c = { 0, 1 };
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* PR tree-optimization/108498 */
|
||||
/* { dg-require-effective-target int32plus } */
|
||||
|
||||
struct U { char c[16]; };
|
||||
struct V { char c[16]; };
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target int32 } */
|
||||
|
||||
typedef unsigned char __attribute__((__vector_size__ (4))) V;
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* PR rtl-optimization/101008 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -g" } */
|
||||
/* { dg-require-effective-target int32 } */
|
||||
|
||||
typedef unsigned __attribute__((__vector_size__(32))) U;
|
||||
typedef unsigned __attribute__((__vector_size__(16))) V;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
/* { dg-do run } */
|
||||
/* { dg-options "-O2 -std=c99" } */
|
||||
/* { dg-require-effective-target int32plus } */
|
||||
|
||||
#include <limits.h>
|
||||
#include <assert.h>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -fdump-tree-optimized" } */
|
||||
/* { dg-require-effective-target int32plus } */
|
||||
|
||||
void foo();
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-Og -fno-tree-ccp" } */
|
||||
/* { dg-additional-options "-mabm" { target { i?86-*-* x86_64-*-* } } } */
|
||||
/* { dg-require-effective-target int32plus } */
|
||||
|
||||
int a, b, c;
|
||||
extern void baz (int);
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
/* { dg-additional-options "-mbmi" { target { { i?86-*-* x86_64-*-* } && { ! { ia32 } } } } } */
|
||||
/* { dg-additional-options "-march=rv64gc_zbb" { target { rv64 } } } */
|
||||
/* { dg-additional-options "-march=rv32gc_zbb" { target { rv32 } } } */
|
||||
/* { dg-require-effective-target int32plus } */
|
||||
|
||||
int ctz1 (unsigned x)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* { dg-do compile} */
|
||||
/* { dg-options "-O2 -fdump-tree-evrp" } */
|
||||
|
||||
/* { dg-require-effective-target int32 } */
|
||||
|
||||
unsigned char
|
||||
foo (unsigned int x)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* { dg-do run } */
|
||||
/* { dg-options "-O -fdump-tree-optimized -fwrapv" } */
|
||||
/* { dg-require-effective-target int32 } */
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdbool.h>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2" } */
|
||||
/* { dg-require-effective-target int32plus } */
|
||||
|
||||
struct a {
|
||||
unsigned c : 17;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* PR tree-optimization/97750 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -Wall -Wextra" } */
|
||||
/* { dg-require-effective-target ptr_eq_long } */
|
||||
|
||||
char CopyPlane_src;
|
||||
long CopyPlane_copy_pitch;
|
||||
|
|
Loading…
Add table
Reference in a new issue