2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
8 unsigned short int res
;
11 if (__builtin_mul_overflow (a
, b
, &res
))
22 if (__builtin_mul_overflow (a
, b
, &res
))
27 /* { dg-final { scan-assembler-times "jn?o\[ \t\]" 2 } } */
28 /* { dg-final { scan-assembler-times "mulw\[ \t\]" 2 } } */
29 /* { dg-final { scan-assembler-times "imulw\[ \t\]" 1 } } */