1 /* Check if the optimizers are not removing the umulsihi3_imm
2 instruction. */
3 /* { dg-do run } */
4 /* { dg-options "-O2 -fno-inline" } */
5
6 #include <stdint.h>
7
8 static int32_t test (int16_t reg_val)
9 {
10 int32_t x = (reg_val & 0xf) * 62500;
11 return x;
12 }
13
14 int main (void)
15 {
16 volatile int32_t x = 0xc172;
17 x = test (x);
18
19 if (x != 0x0001e848)
20 __builtin_abort ();
21 return 0;
22 }
23