aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/acle/crc_hf_1.c
blob: e6cbfc0b33e56e4275b96978ca1823d7682792fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Test that using an Armv8-a hard-float target doesn't
   break CRC intrinsics.  */

/* { dg-do compile } */
/* { dg-require-effective-target arm_hard_vfp_ok }  */
/* { dg-options "-mfloat-abi=hard -march=armv8-a+simd+crc" } */

#include <arm_acle.h>

uint32_t
foo (uint32_t a, uint32_t b)
{
  return __crc32cw (a, b);
}