arm: Fix mve_vmvnq_n_<supf><mode> argument mode
authorChristophe Lyon <christophe.lyon@arm.com>
Wed, 13 Oct 2021 09:16:17 +0000 (09:16 +0000)
committerChristophe Lyon <christophe.lyon@foss.st.com>
Tue, 22 Feb 2022 15:55:06 +0000 (15:55 +0000)
The vmvnq_n* intrinsics and have [u]int[16|32]_t arguments, so use
<V_elem> iterator instead of HI in mve_vmvnq_n_<supf><mode>.

Most of the work of this patch series was carried out while I was
working at STMicroelectronics as a Linaro assignee.

2022-02-22  Christophe Lyon  <christophe.lyon@arm.com>

gcc/
* config/arm/mve.md (mve_vmvnq_n_<supf><mode>): Use V_elem mode
for operand 1.

gcc/config/arm/mve.md

index 171dd38..5c3b34d 100644 (file)
 (define_insn "mve_vmvnq_n_<supf><mode>"
   [
    (set (match_operand:MVE_5 0 "s_register_operand" "=w")
-       (unspec:MVE_5 [(match_operand:HI 1 "immediate_operand" "i")]
+       (unspec:MVE_5 [(match_operand:<V_elem> 1 "immediate_operand" "i")]
         VMVNQ_N))
   ]
   "TARGET_HAVE_MVE"