5 __attribute__ ((noinline
)) int
6 f (int *restrict a
, int *restrict b
, int *restrict c
)
8 for (int i
= 0; i
< N
; ++i
)
22 for (int i
= 0; i
< N
; ++i
)
26 /* b[i] cannot be 0 as that would cause undefined
27 behavior with respect to `% b[i]`. */
28 b
[i
] = b
[i
] ? b
[i
] : 1;
29 __asm__
volatile ("");
35 for (int i
= 0; i
< N
; ++i
)
36 if (c
[i
] != a
[i
] % b
[i
])
40 /* { dg-final { scan-tree-dump "vect_recog_mod_var_pattern: detected" "vect" { target vect_int_div } } } */