]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Define loongarch_insn_cost and set the cost of movcf2gr and movgr2cf.
authorLulu Cheng <chenglulu@loongson.cn>
Fri, 28 Jun 2024 07:09:48 +0000 (15:09 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Tue, 2 Jul 2024 08:11:39 +0000 (16:11 +0800)
commit90c8782615e5fadb566ed4fbe4e08af9ea3d2d2d
tree61a67f38d421fc4799169275827cb995b100839c
parent20909c97211f25fb29edcd12cb148309c919bf81
LoongArch: Define loongarch_insn_cost and set the cost of movcf2gr and movgr2cf.

The following two FAIL items have been fixed:

FAIL: gcc.target/loongarch/movcf2gr-via-fr.c scan-assembler movcf2fr\\t\\\\\$f[0-9]+,\\\\\$fcc
FAIL: gcc.target/loongarch/movcf2gr-via-fr.c scan-assembler movfr2gr\\\\.s\\t\\\\\$r4

gcc/ChangeLog:

* config/loongarch/loongarch.cc (loongarch_insn_cost):
New function.
(TARGET_INSN_COST): New macro.
gcc/config/loongarch/loongarch.cc