Re: [PATCH] [gimplefe] Add vector_mask attribute to get access to vector bools

2022-02-11 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > The following adds __attribute__((vector_mask)) to get access to > the corresponding mask type for a vector type. The implementation > simply uses truth_type_for so creating a mask type that's not > what the target would choose as canonical, say a AVX2 style one > when AV

[PATCH] [gimplefe] Add vector_mask attribute to get access to vector bools

2022-02-11 Thread Richard Biener via Gcc-patches
The following adds __attribute__((vector_mask)) to get access to the corresponding mask type for a vector type. The implementation simply uses truth_type_for so creating a mask type that's not what the target would choose as canonical, say a AVX2 style one when AVX512VL is enabled, is not possible