Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr94784.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
rev | line source |
---|---|
152 | 1 /* { dg-do compile { target aarch64*-*-* } } */ |
2 /* { dg-options "-O2 -ftree-slp-vectorize -march=armv8.2-a+sve -msve-vector-bits=256" } */ | |
3 | |
4 typedef short __attribute__((vector_size (8))) v4hi; | |
5 | |
6 typedef union U4HI { v4hi v; short a[4]; } u4hi; | |
7 | |
8 short a[4]; | |
9 | |
10 void pass_v4hi (v4hi v) { | |
11 int j; | |
12 u4hi u; | |
13 u.v = v; | |
14 for (j = 0; j < 4; j++) | |
15 a[j] = u.a[j]; | |
16 }; |