mve: Fix vsetq_lane for 64-bit elements with lane 1 [PR 115611]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr65270-2.c
blob277571c9e7c34d38858b810ee9b1cc46878fb8e8
1 /* { dg-do run } */
2 /* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
4 struct a
6 int a[100];
7 };
8 typedef struct a misaligned_t __attribute__ ((aligned (8)));
9 typedef struct a aligned_t __attribute__ ((aligned (32)));
11 __attribute__ ((used))
12 __attribute__ ((noinline))
13 void
14 t(void *a, int misaligned, aligned_t *d)
16 int i,v;
17 for (i=0;i<100;i++)
18 d->a[i]+=!misaligned? ((aligned_t *)a)->a[i] : ((misaligned_t *)a)->a[i];
20 struct b {int v; misaligned_t m;aligned_t aa;} b;
21 aligned_t d;
22 int
23 main()
25 t(&b.m, 1, &d);
26 return 0;