view gcc/testsuite/gcc.target/aarch64/sve/acle/general/nosve_6.c @ 152:2b5abeee2509

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

/* { dg-options "-march=armv8-a -mgeneral-regs-only" } */

#pragma GCC aarch64 "arm_sve.h"

#pragma GCC target "+sve"

void
f (svbool_t *x, svint8_t *y)
{
  *x = svptrue_b8 (); /* { dg-error {ACLE function '(svbool_t svptrue_b8\(\)|svptrue_b8)' is incompatible with the use of '-mgeneral-regs-only'} } */
  *y = svadd_m (*x, *y, 1);
}