gcc/testsuite/gcc.target/loongarch/smulsi3_highpart.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-rtl-expand-all" } */ |
| 3 | |
| 4 | typedef unsigned int DI __attribute__((mode(DI))); |
| 5 | typedef unsigned int SI __attribute__((mode(SI))); |
| 6 | |
| 7 | SI |
| 8 | f (SI x, SI y) |
| 9 | { |
| 10 | return ((DI) x * y) >> 32; |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-rtl-dump "highparttmp" "expand" } } */ |
| 14 | /* { dg-final { scan-assembler "mulh\\.w" } } */ |
| 15 | /* { dg-final { scan-assembler-not "slli\\.w" } } */ |