blob: 3c07309e43f6255428243fff953d7dedb6658275 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-O3 -maltivec" } */
/* { dg-final { scan-assembler-not "mfcr" } } */
#include <altivec.h>
int foo(vector float x, vector float y) {
if (vec_all_eq(x,y)) return 3245;
else return 12;
}
|