2017-08-06 Andrew Pinski <apinski@cavium.com>
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / target_attr_13.c
blobd5bee3a7b900bf9348c9cbfd67f487c381b13bf6
1 /* { dg-do assemble } */
2 /* { dg-options "-O2 -march=armv8-a+crc+crypto -mcpu=generic" } */
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);