Re: [PATCH] x86: Fix ix86_expand_vector_init for V*TImode [PR100887]

2021-06-04 Thread Uros Bizjak via Gcc-patches
On Fri, Jun 4, 2021 at 11:00 AM Jakub Jelinek wrote: > > Hi! > > We have vec_initv4tiv2ti and vec_initv2titi patterns which call > ix86_expand_vector_init and assume it works for those modes. For the > case of construction from two half-sized vectors, the code assumes it > will always succeed, bu

[PATCH] x86: Fix ix86_expand_vector_init for V*TImode [PR100887]

2021-06-04 Thread Jakub Jelinek via Gcc-patches
Hi! We have vec_initv4tiv2ti and vec_initv2titi patterns which call ix86_expand_vector_init and assume it works for those modes. For the case of construction from two half-sized vectors, the code assumes it will always succeed, but we have only insn patterns with SImode and DImode element types.