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)));
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" } } */