Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/umulsi3_highpart.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
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-assembler "mulh\\.wu" } } */
14 /* { dg-final { scan-assembler-not "slli\\.w" } } */