]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Generalise vec_set predicate
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 9 Feb 2022 16:57:02 +0000 (16:57 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 9 Feb 2022 16:57:02 +0000 (16:57 +0000)
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.

gcc/config/aarch64/aarch64-simd.md

index 9529bdb49974b7ec03be0bcfeb55599dab4433a6..872a3d78269349016913adbd9ceafc6e5903b309 100644 (file)
 
 (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"
   {