[AArch64][12/14] Target attributes and target pragmas tests
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / target_attr_13.c
blob0f81e9aa587dce0986929e2ef719f07902a479af
1 /* { dg-do assemble } */
2 /* { dg-options "-O2 -march=armv8-a+crc+crypto" } */
4 #include "arm_acle.h"
6 /* Make sure that 'crypto' is not required to compile an intrinsic
7 from arm_acle.h in a non-crypto function. Tests that arm_acle.h
8 properly clears the architectural features in its initial target
9 pragma. */
11 __attribute__ ((target ("+crc+nocrypto")))
12 int
13 foo (uint32_t a, uint8_t b)
15 return __crc32b (a, b);