1 /* PR rtl-optimization/46248 */
9 foo (unsigned char *x
, int y
, struct S
*z
)
12 const int l2
= y
+ l1
;
13 const int l3
= y
+ l2
;
14 const int l4
= y
+ l3
;
15 const int l5
= y
+ l4
;
16 const int l6
= y
+ l5
;
17 const int l7
= y
+ l6
;
19 for (i
= 0; i
< 8; i
++)
21 int a
= x
[l3
] - x
[l4
];
22 int b
= x
[l4
] - x
[l5
];
23 int c
= x
[l5
] - x
[l6
];
24 int d
= (b
>= 0 ? b
: -b
) - (((a
>= 0 ? a
: -a
) + (c
>= 0 ? c
: -c
)) >> 1);
27 int v
= d
* (-b
> 0 ? 1 : -1);