Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/arm/pragma_fpu_attribute_2.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* Test for #pragma assembly extension generations. */ /* { dg-do compile } */ /* { dg-require-effective-target arm_fp_ok } */ /* { dg-add-options arm_fp } */ #include <stdint.h> #pragma GCC target("fpu=vfpv3-d16") extern uint32_t bar(); #pragma GCC push_options #pragma GCC target("fpu=vfpv4") extern float fmaf (float, float, float); float vfma32 (float x, float y, float z) { return fmaf (x, y, z); } #pragma GCC pop_options uint32_t restored () { return bar(); } /* { dg-final { scan-assembler-times {\.fpu\s+vfpv4} 1 } } */ /* { dg-final { scan-assembler-times {\.fpu\s+vfpv3-d16} 1 } } */