view gcc/testsuite/gcc.target/aarch64/fpcr_fpsr_1.c @ 152:2b5abeee2509

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

/* { dg-do compile } */
/* { dg-options "-O2" } */

void
f1 (int *x)
{
  __builtin_aarch64_set_fpsr (*x);
}

void
f2 (int *x)
{
  __builtin_aarch64_set_fpcr (*x);
}

void
f3 (int *x)
{
  *x = __builtin_aarch64_get_fpsr ();
}

void
f4 (int *x)
{
  *x = __builtin_aarch64_get_fpcr ();
}