| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-std=c99 -O3 -fno-vect-cost-model -march=rv32gcv_zvfh -mabi=ilp32d -mrvv-vector-bits=zvl -ffast-math" } */ |
| 3 |
|
| 4 |
#include "cond_copysign-template.h" |
| 5 |
|
| 6 |
/* { dg-final { scan-assembler-times {\tvfsgnj\.vv} 3 } } */ |
| 7 |
/* { dg-final { scan-assembler-times {\tvfsgnj\.vf} 3 } } */ |
| 8 |
/* 1. The vectorizer wraps scalar variants of copysign into vector constants which |
| 9 |
expand cannot handle currently. |
| 10 |
2. match.pd convert .COPYSIGN (1, b) + COND_MUL to AND + XOR currently. */ |
| 11 |
/* { dg-final { scan-assembler-times {\tvfsgnjx\.vv} 6 { xfail riscv*-*-* } } } */ |
| 12 |
/* { dg-final { scan-assembler-times {\tvfsgnjn\.vv} 3 } } */ |
| 13 |
/* { dg-final { scan-assembler-times {\tvfsgnjn\.vf} 3 } } */ |
| 14 |
/* { dg-final { scan-assembler-not {\tvmerge\.vvm} } } */ |
| 15 |
/* { dg-final { scan-assembler-not {\tvf?merge\.v[vxi]m\t} } } */ |