summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/acle/crc32cw.c
blob: 531e60432091e8b6a182ff6c4578b3bbe14b0e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Test the crc32cw ACLE intrinsic.  */

/* { dg-do assemble } */
/* { dg-options "-save-temps -O2 -march=armv8-a+crc" } */

#include "arm_acle.h"

uint32_t
test_crc32cw (uint32_t arg0, uint32_t arg1)
{
  return __crc32cw (arg0, arg1);
}

/* { dg-final { scan-assembler "crc32cw\tw..?, w..?, w..?\n" } } */
/* { dg-final { cleanup-saved-temps } } */