summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/crc32-2.c
blob: e7af9ab45f0ed95ba5dfa731159510c1623b0c16 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-O2 -mcrc32" } */
/* { dg-final { scan-assembler "crc32q\[^\\n\]*rax" { target lp64 } } } */

unsigned long long
crc32d (unsigned long long x, unsigned long long y)
{
  return __builtin_ia32_crc32di (x, y);
}