| 1 |
/* PR target/51968 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-require-effective-target arm_softfp_ok } */ |
| 4 |
/* { dg-require-effective-target arm_neon_ok } */ |
| 5 |
/* { dg-options "-O2 -march=armv7-a -mfloat-abi=softfp -mfpu=neon" } */ |
| 6 |
#include <arm_neon.h> |
| 7 |
|
| 8 |
struct T { int8x8x2_t val; }; |
| 9 |
int y; |
| 10 |
|
| 11 |
void |
| 12 |
foo (int8x8_t z, int8x8_t x, int16x8_t b, int8x8_t n) |
| 13 |
{ |
| 14 |
if (y) |
| 15 |
{ |
| 16 |
struct T m; |
| 17 |
m.val = vuzp_s8 (z, x); |
| 18 |
} |
| 19 |
for (;;) |
| 20 |
{ |
| 21 |
int8x16_t g; |
| 22 |
int8x8_t h, j, k; |
| 23 |
struct T m; |
| 24 |
j = vqmovn_s16 (b); |
| 25 |
g = vcombine_s8 (j, h); |
| 26 |
k = vget_low_s8 (g); |
| 27 |
m.val = vuzp_s8 (k, n); |
| 28 |
} |
| 29 |
} |