gcc/testsuite/gcc.target/i386/pr115910.c
raw| 1 | /* PR target/115910 */ |
| 2 | /* { dg-do compile { target { ! ia32 } } } */ |
| 3 | /* { dg-options "-O2 -march=x86-64 -mtune=generic -masm=att" } */ |
| 4 | /* { dg-final { scan-assembler-times {\timulq\t} 2 } } */ |
| 5 | /* { dg-final { scan-assembler-times {\tshrq\t\$33,} 2 } } */ |
| 6 | /* { dg-final { scan-assembler-not {\tsarl\t} } } */ |
| 7 | |
| 8 | int |
| 9 | foo (int x) |
| 10 | { |
| 11 | if (x < 0) |
| 12 | __builtin_unreachable (); |
| 13 | return x / 3U; |
| 14 | } |
| 15 | |
| 16 | int |
| 17 | bar (int x) |
| 18 | { |
| 19 | return x / 3U; |
| 20 | } |