| 1 |
/* Ensure that explicit zero-entend instructions are present when compiling |
| 2 |
for targets that may not have sram-ecc enabled (in which sub-dword loads do |
| 3 |
not zero the high bits of the target register). */ |
| 4 |
|
| 5 |
/* { dg-do compile } */ |
| 6 |
/* { dg-options "-O2 -ftree-vectorize -dp -msram-ecc=any" } */ |
| 7 |
|
| 8 |
typedef unsigned int v64si __attribute__ ((vector_size (64*4))); |
| 9 |
typedef unsigned short v64hi __attribute__ ((vector_size (64*2))); |
| 10 |
|
| 11 |
extern v64si a; |
| 12 |
extern v64hi b; |
| 13 |
|
| 14 |
void |
| 15 |
f () |
| 16 |
{ |
| 17 |
for (int n = 0; n < 64; n++) |
| 18 |
a[n] = b[n]; |
| 19 |
} |
| 20 |
|
| 21 |
/* { dg-final { scan-assembler "(\\\*zero_extendv64hiv64si_sdwa|\\\*zero_extendv64hiv64si_shift)" } } */ |