]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Add CRC expander to generate faster CRC
authorXi Ruoyao <xry111@xry111.site>
Mon, 16 Dec 2024 12:43:03 +0000 (20:43 +0800)
committerXi Ruoyao <xry111@xry111.site>
Wed, 18 Dec 2024 08:43:37 +0000 (16:43 +0800)
commit5b5b517e819837e1950cd4d809cdc6efb8e80302
tree1a327cffc0355c0fe2885123f10a4df0dc5becab
parent13ea50fdac104b674eb484936023e20dec0b62cf
LoongArch: Add CRC expander to generate faster CRC

64-bit LoongArch has native CRC instructions for two specific
polynomials.  For other polynomials or 32-bit, use the generic
table-based approach but optimize bit reversing.

gcc/ChangeLog:

* config/loongarch/loongarch.md (crc_rev<mode:SUBDI>si4): New
define_expand.
gcc/config/loongarch/loongarch.md