Handle Octeon 3 not supporting MIPS paired-single instructions.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / p5600-bonding.c
blob0890ffa9215a5b9658ceff73927dd5ac2320c039
1 /* { dg-do compile } */
2 /* { dg-options "-dp -mtune=p5600 -mno-micromips -mno-mips16" } */
3 /* { dg-skip-if "Bonding needs peephole optimization." { *-*-* } { "-O0" "-O1" } { "" } } */
4 typedef int VINT32 __attribute__ ((vector_size((16))));
6 void
7 memory_operation (void * __restrict src, void * __restrict dest, int num)
9 VINT32 *vsrc = (VINT32 *) src;
10 VINT32 *vdest = (VINT32 *) dest;
11 int i;
13 for (i = 0; i < num - 1; i += 2)
15 vdest[i] = vdest[i] + vsrc[i];
16 vdest[i + 1] = vdest[i + 1] + vsrc[i + 1];
19 /* { dg-final { scan-assembler "join2_" } } */