Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr57949-1.c
blob20494423cb71b99ff4a752c20086336fc8d13213
1 /* { dg-do compile { target { powerpc64*-*-* && lp64 } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-skip-if "" { powerpc_elfv2 } } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
5 /* { dg-options "-O2 -mcpu=power7" } */
7 /* Verify that vs is 16-byte aligned in the absence of -mcompat-align-parm. */
9 typedef float v4sf __attribute__ ((vector_size (16)));
10 struct s { long m; v4sf v; };
11 long n;
12 v4sf ve;
14 void pr57949 (long d1, long d2, long d3, long d4, long d5, long d6,
15 long d7, long d8, long d9, struct s vs) {
16 n = vs.m;
17 ve = vs.v;
20 /* { dg-final { scan-assembler "li \.\*,144" } } */
21 /* { dg-final { scan-assembler "ld \.\*,128\\(1\\)" } } */