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

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