Use gather loads for strided accesses
[official-gcc.git] / gcc / testsuite / gcc.target / nvptx / trailing-init.c
blob470ac0059d3c56a3861b5db582dd54cca6dff4e5
1 /* { dg-do compile } */
2 /* { dg-additional-options "-Wno-pedantic" } */
4 struct trailing
6 unsigned m;
7 short ary[];
8 } trailing =
9 {.ary = {1}};
11 struct packed
13 unsigned m;
14 short ary[];
15 } __attribute__ ((packed)) packed =
16 {.ary = {2}};
18 /* { dg-final { scan-assembler ".align 1 .u32 packed\\\[2\\\] = { 0, 2 };" } } */
19 /* { dg-final { scan-assembler ".align 4 .u32 trailing\\\[2\\\] = { 0, 1 };" } } */