This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
So we'd have
a = VEC_COND_EXPR <(y < z), b, c>
Assume a[i] accesses vector element i. Then this would mean
forall i: a[i] = y[i] < z[i] ? b[i] : c[i]
The important consideration here is that we don't care how the target implments the comparison, because we never expose it.
As for the rtl-level representation, see how mov<mode>cc is implemented. I think that's a better model (as it uses only one named pattern) than conditional branches (which use hordes of named patterns).
- Devang
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |