view gcc/testsuite/c-c++-common/pr80162-1.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR middle-end/80162 */
/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } } */
/* { dg-options "-msse2 -ffixed-xmm7" } */

typedef int v8 __attribute__ ((vector_size (8)));
struct U { v8 a; v8 b; };
register struct U u asm ("xmm7");

int *
foo (int i)
{
  return &u.a[i];	/* { dg-error "address of \[^ \n\r]* register variable" } */
}