aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/nvptx/mul-wide.c
blob: d84ec2e7aab59a13ebd69fb1f28937c91a7edb26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2" } */

int mulhisi3(short x, short y)
{
  return (int)x * (int)y;
}

long mulsidi3(int x, int y)
{
  return (long)x * (long)y;
}

/* { dg-final { scan-assembler-times "mul.wide.s16" 1 } } */
/* { dg-final { scan-assembler-times "mul.wide.s32" 1 } } */