gcc/testsuite/gcc.dg/pr122991.c
raw| 1 | /* PR target/122991 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | /* { dg-additional-options "-msse4" { target i?86-*-* x86_64-*-* } } */ |
| 5 | |
| 6 | int |
| 7 | foo () |
| 8 | { |
| 9 | return __builtin_rev_crc32_data32 (0, 0, 0); |
| 10 | } |
| 11 | |
| 12 | int |
| 13 | bar () |
| 14 | { |
| 15 | return __builtin_rev_crc32_data32 (-1U, -1U, -1U); |
| 16 | } |
| 17 | |
| 18 | int |
| 19 | baz () |
| 20 | { |
| 21 | return __builtin_crc32_data32 (0, 0, 0); |
| 22 | } |
| 23 | |
| 24 | int |
| 25 | qux () |
| 26 | { |
| 27 | return __builtin_crc32_data32 (-1U, -1U, -1U); |
| 28 | } |