]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mips: Fix missing mode in neg<mode:MSA>2
authorXi Ruoyao <xry111@xry111.site>
Mon, 5 Feb 2024 12:17:25 +0000 (20:17 +0800)
committerXi Ruoyao <xry111@xry111.site>
Mon, 5 Feb 2024 12:23:08 +0000 (20:23 +0800)
I was too sleepy writting this :(.

gcc/ChangeLog:

* config/mips/mips-msa.md (neg<mode:MSA>2): Add missing mode for
neg.

(cherry picked from commit 55357960fbddd261e32f088f5dd328d58b0f25b3)

gcc/config/mips/mips-msa.md

index 046ce3e529edada699ff20f0f2651356cf7c5198..8f28ad7570ed2a8fb5b171a8f913378372d6b5c7 100644 (file)
 
 (define_insn "neg<mode>2"
   [(set (match_operand:FMSA 0 "register_operand" "=f")
-       (neg (match_operand:FMSA 1 "register_operand" "f")))]
+       (neg:FMSA (match_operand:FMSA 1 "register_operand" "f")))]
   "ISA_HAS_MSA"
   "bnegi.<msafmt>\t%w0,%w1,<elmsgnbit>"
   [(set_attr "type" "simd_bit")