| 1 |
/* { dg-do compile { target { aarch64*-*-* } } } */ |
| 2 |
/* { dg-options "-march=armv8-a+sve -w -Ofast" } */ |
| 3 |
|
| 4 |
typedef struct { |
| 5 |
int red; |
| 6 |
} MagickPixelPacket; |
| 7 |
|
| 8 |
int GetImageChannelMoments_image, GetImageChannelMoments_image_0, |
| 9 |
GetImageChannelMoments___trans_tmp_1, GetImageChannelMoments_M11_0, |
| 10 |
GetImageChannelMoments_pixel_3, GetImageChannelMoments_y, |
| 11 |
GetImageChannelMoments_p; |
| 12 |
|
| 13 |
double GetImageChannelMoments_M00_0, GetImageChannelMoments_M00_1, |
| 14 |
GetImageChannelMoments_M01_1; |
| 15 |
|
| 16 |
MagickPixelPacket GetImageChannelMoments_pixel; |
| 17 |
|
| 18 |
void |
| 19 |
SetMagickPixelPacket(int color, MagickPixelPacket *pixel) { |
| 20 |
pixel->red = color; |
| 21 |
} |
| 22 |
|
| 23 |
void |
| 24 |
GetImageChannelMoments() { |
| 25 |
for (; GetImageChannelMoments_y; GetImageChannelMoments_y++) { |
| 26 |
SetMagickPixelPacket(GetImageChannelMoments_p, |
| 27 |
&GetImageChannelMoments_pixel); |
| 28 |
GetImageChannelMoments_M00_1 += GetImageChannelMoments_pixel.red; |
| 29 |
if (GetImageChannelMoments_image) |
| 30 |
GetImageChannelMoments_M00_1++; |
| 31 |
GetImageChannelMoments_M01_1 += |
| 32 |
GetImageChannelMoments_y * GetImageChannelMoments_pixel_3; |
| 33 |
if (GetImageChannelMoments_image_0) |
| 34 |
GetImageChannelMoments_M00_0++; |
| 35 |
GetImageChannelMoments_M01_1 += |
| 36 |
GetImageChannelMoments_y * GetImageChannelMoments_p++; |
| 37 |
} |
| 38 |
GetImageChannelMoments___trans_tmp_1 = __builtin_atan(GetImageChannelMoments_M11_0); |
| 39 |
} |