Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/target_attr_13.c

raw
1 /* { dg-do assemble } */
2 /* { dg-options "-O2 -mcpu=generic+crypto" } */
3
4 #include "arm_acle.h"
5
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. */
10
11 __attribute__ ((target ("+crc+nocrypto")))
12 int
13 foo (uint32_t a, uint8_t b)
14 {
15 return __crc32b (a, b);
16 }