1 /* { dg-require-effective-target vect_int } */
14 #define BASE ((TYPE) -1 < 0 ? -126 : 4)
17 __attribute__((noipa
, noinline
, optimize("O1")))
18 void fun1(TYPE
* restrict pixel
, TYPE level
, int n
)
20 for (int i
= 0; i
< n
; i
+=1)
21 pixel
[i
] = (pixel
[i
] + level
) / 0xff;
24 __attribute__((noipa
, noinline
, optimize("O3")))
25 void fun2(TYPE
* restrict pixel
, TYPE level
, int n
)
27 for (int i
= 0; i
< n
; i
+=1)
28 pixel
[i
] = (pixel
[i
] + level
) / 0xff;
36 for (int i
= 0; i
< N
; ++i
)
41 printf ("%d: 0x%x\n", i
, a
[i
]);
48 for (int i
= 0; i
< N
; ++i
)
51 printf ("%d = 0x%x == 0x%x\n", i
, a
[i
], b
[i
]);
59 /* { dg-final { scan-tree-dump "divmod pattern recognized" "vect" { target aarch64*-*-* } } } */