Handle Octeon 3 not supporting MIPS paired-single instructions.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / mips-ps-5.c
blob4499e54ed1eaa74be507e4921986e5378c2c6675
1 /* { dg-do compile } */
2 /* { dg-options "-mpaired-single -mgp64 -ftree-vectorize forbid_cpu=octeon.*" } */
3 /* { dg-skip-if "requires vectorization" { *-*-* } { "-O0" "-Os" } { "" } } */
5 extern float a[] __attribute__ ((aligned (8)));
6 extern float b[] __attribute__ ((aligned (8)));
7 extern float c[] __attribute__ ((aligned (8)));
9 NOMIPS16 void
10 foo (void)
12 int i;
13 for (i = 0; i < 16; i++)
14 a[i] = b[i] == c[i] + 1 ? b[i] : c[i];
17 /* { dg-final { scan-assembler "\tadd\\.ps\t" } } */
18 /* { dg-final { scan-assembler "\tc\\.eq\\.ps\t" } } */
19 /* { dg-final { scan-assembler "\tmov\[tf\]\\.ps\t" } } */