]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/gcc.target/s390/nolrl-1.c
S/390: Fix alignment check for literal pool references.
[gcc.git] / gcc / testsuite / gcc.target / s390 / nolrl-1.c
1 /* Make sure the compiler does not try to use a relative long
2 instruction to load the string since it might not meet the
3 alignment requirements of the instruction. */
4
5 /* { dg-do compile } */
6 /* { dg-options "-march=z10 -O3 -mzarch" } */
7
8 extern void foo (char*);
9
10 void
11 bar ()
12 {
13 unsigned char z[32];
14
15 __builtin_memcpy (z, "\001\000\000\000", 4);
16 foo (z);
17 }
18
19 /* { dg-final { scan-assembler-not "lrl" } } */
This page took 0.038895 seconds and 5 git commands to generate.