aarch64: Generalise vec_set predicate

The aarch64_simd_vec_set<mode> define_insn takes memory operands,
so this patch makes the vec_set<mode> optab expander do the same.

gcc/
	* config/aarch64/aarch64-simd.md (vec_set<mode>): Allow the
	element to be an aarch64_simd_nonimmediate_operand.
This commit is contained in:
Richard Sandiford 2022-02-09 16:57:02 +00:00
parent c48a6819d1
commit fabc5d9bce

View File

@ -1378,7 +1378,7 @@
(define_expand "vec_set<mode>"
[(match_operand:VALL_F16 0 "register_operand")
(match_operand:<VEL> 1 "register_operand")
(match_operand:<VEL> 1 "aarch64_simd_nonimmediate_operand")
(match_operand:SI 2 "immediate_operand")]
"TARGET_SIMD"
{