gcc/testsuite/gcc.target/nvptx/mul-wide.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2" } */ |
| 3 | |
| 4 | int mulhisi3(short x, short y) |
| 5 | { |
| 6 | return (int)x * (int)y; |
| 7 | } |
| 8 | |
| 9 | long mulsidi3(int x, int y) |
| 10 | { |
| 11 | return (long)x * (long)y; |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-assembler-times "mul.wide.s16" 1 } } */ |
| 15 | /* { dg-final { scan-assembler-times "mul.wide.s32" 1 } } */ |
| 16 |