1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
3 /* { dg-require-effective-target powerpc_p8vector_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
5 /* { dg-options "-mcpu=power7 -mtune=power8 -O3" } */
9 int fusion_uchar (unsigned char *p
){ return p
[LARGE
]; }
10 int fusion_schar (signed char *p
){ return p
[LARGE
]; }
11 int fusion_ushort (unsigned short *p
){ return p
[LARGE
]; }
12 int fusion_short (short *p
){ return p
[LARGE
]; }
13 int fusion_int (int *p
){ return p
[LARGE
]; }
14 unsigned fusion_uns (unsigned *p
){ return p
[LARGE
]; }
16 /* { dg-final { scan-assembler-times "gpr load fusion" 6 } } */
17 /* { dg-final { scan-assembler-times "lbz" 2 } } */
18 /* { dg-final { scan-assembler-times "extsb" 1 } } */
19 /* { dg-final { scan-assembler-times "lhz" 2 } } */
20 /* { dg-final { scan-assembler-times "extsh" 1 } } */
21 /* { dg-final { scan-assembler-times "lwz" 2 } } */