(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
nvptx/
mul-hi.c
       1  /* { dg-do assemble } */
       2  /* { dg-options "-O2 -save-temps" } */
       3  
       4  short smulhi3_highpart(short x, short y)
       5  {
       6    return ((int)x * (int)y) >> 16;
       7  }
       8  
       9  int smulsi3_highpart(int x, int y)
      10  {
      11    return ((long)x * (long)y) >> 32;
      12  }
      13  
      14  /* { dg-final { scan-assembler-times "mul.hi.s16" 1 } } */
      15  /* { dg-final { scan-assembler-times "mul.hi.s32" 1 } } */