(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
crc32-5.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2" } */
       3  /* { dg-final { scan-assembler "crc32b\[^\\n\]*eax" } } */
       4  /* { dg-final { scan-assembler "crc32w\[^\\n\]*eax" } } */
       5  /* { dg-final { scan-assembler "crc32l\[^\\n\]*eax" } } */
       6  
       7  #pragma GCC target ("crc32")
       8  
       9  unsigned int
      10  crc32b (unsigned int x, unsigned char y)
      11  {
      12    return __builtin_ia32_crc32qi (x, y);
      13  }
      14  
      15  unsigned int
      16  crc32w (unsigned int x, unsigned short y)
      17  {
      18    return __builtin_ia32_crc32hi (x, y);
      19  }
      20  
      21  unsigned int
      22  crc32d (unsigned int x, unsigned int y)
      23  {
      24    return __builtin_ia32_crc32si (x, y);
      25  }