]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Rename frint_<fmt> to rint<mode>2
authorXi Ruoyao <xry111@xry111.site>
Sun, 6 Nov 2022 12:41:38 +0000 (20:41 +0800)
committerXi Ruoyao <xry111@xry111.site>
Sat, 12 Nov 2022 07:01:09 +0000 (15:01 +0800)
commite468dd40150ad20fe87d315c2638c572ca44dc3b
tree49d3196ffc367cf52871c674cfbe2fd6b86750ab
parentba7551485bc5760371462517ec05bc6ba20b3b35
LoongArch: Rename frint_<fmt> to rint<mode>2

Use standard name so __builtin_rint{,f} can be expanded to one
instruction.

gcc/ChangeLog:

* config/loongarch/loongarch.md (frint_<fmt>): Rename to ..
(rint<mode>2): .. this.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/frint.c: New test.
gcc/config/loongarch/loongarch.md
gcc/testsuite/gcc.target/loongarch/frint.c [new file with mode: 0644]