* config/i386/avx512fintrin.h (_mm512_set_epi16, _mm512_set_epi8,
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / volatileloadpair-1.c
blob57a0535bf79284db30349e6c01d3cf72fb0aa4a6
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* volatile references should not produce load pair. */
4 /* { dg-final { scan-assembler-not "ldp\t" } } */
6 int f0(volatile int *a)
8 int b = a[0];
9 int c = a[1];
10 return b + c;
13 int f1(volatile int *a)
15 int b = a[1];
16 int c = a[0];
17 return b + c;
20 int f2(volatile int *a)
22 int b = a[1];
23 int c = a[2];
24 return b + c;
27 int f3(volatile int *a)
29 int b = a[2];
30 int c = a[1];
31 return b + c;
34 int f4(volatile int *a)
36 int b = a[2];
37 int c = a[3];
38 return b + c;
41 int f5(volatile int *a)
43 int b = a[3];
44 int c = a[2];
45 return b + c;