| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2" } */ |
| 3 |
|
| 4 |
typedef int __attribute ((mode(TI))) ti_t; |
| 5 |
|
| 6 |
ti_t foo(long x, long y) |
| 7 |
{ |
| 8 |
return (ti_t)x * (ti_t)y; |
| 9 |
} |
| 10 |
|
| 11 |
/* { dg-final { scan-assembler-times "mul.lo.u64" 1 } } */ |
| 12 |
/* { dg-final { scan-assembler-times "mul.hi.s64" 1 } } */ |
| 13 |
|