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))));
7 memory_operation (void * __restrict src
, void * __restrict dest
, int num
)
9 VINT32
*vsrc
= (VINT32
*) src
;
10 VINT32
*vdest
= (VINT32
*) dest
;
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_" } } */