https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105288
Bug ID: 105288
Summary: AVX/AVX512 casts should the "v" constraint
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: hjl.tools at gmail dot com
CC: crazylht at gmail dot com, wwwhhhyyy333 at gmail dot com
Target Milestone: ---
Target: x86-64
There are
(define_insn_and_split "avx_<castmode><avxsizesuffix>_<castmode>"
[(set (match_operand:AVX256MODE2P 0 "nonimmediate_operand" "=x,m")
(vec_concat:AVX256MODE2P
(match_operand:<ssehalfvecmode> 1 "nonimmediate_operand" "xm,x")
(unspec:<ssehalfvecmode> [(const_int 0)] UNSPEC_CAST)))]
"TARGET_AVX && !(MEM_P (operands[0]) && MEM_P (operands[1]))"
where the "x" constraint should be "v".