Use gather loads for strided accesses
[official-gcc.git] / gcc / testsuite / gcc.target / arc / umulsihi3_z.c
blobcf1c00d806ac3cf96808d59258ca8ac16c2c3a5a
1 /* Check if the optimizers are not removing the umulsihi3_imm
2 instruction. */
3 /* { dg-do run } */
4 /* { dg-options "-O2 -fno-inline" } */
6 #include <stdint.h>
8 static int32_t test (int16_t reg_val)
10 int32_t x = (reg_val & 0xf) * 62500;
11 return x;
14 int main (void)
16 volatile int32_t x = 0xc172;
17 x = test (x);
19 if (x != 0x0001e848)
20 __builtin_abort ();
21 return 0;