This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/62275] ARM should use vcvta instructions when possible for float -> int rounding
- From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 02 Sep 2014 15:58:28 +0000
- Subject: [Bug target/62275] ARM should use vcvta instructions when possible for float -> int rounding
- Auto-submitted: auto-generated
- References: <bug-62275-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62275
--- Comment #2 from ktkachov at gcc dot gnu.org ---
Author: ktkachov
Date: Tue Sep 2 15:57:56 2014
New Revision: 214825
URL: https://gcc.gnu.org/viewcvs?rev=214825&root=gcc&view=rev
Log:
[ARM][1/2] Implement lceil, lfloor, lround optabs with new ARMv8-A
instructions.
PR target/62275
* config/arm/iterators.md (FIXUORS): New code iterator.
(VCVT): New int iterator.
(su_optab): New code attribute.
(su): Likewise.
* config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
PR target/62275
* gcc.target/arm/lceil-vcvt_1.c: New test.
* gcc.target/arm/lfloor-vcvt_1.c: Likewise.
* gcc.target/arm/lround-vcvt_1.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.target/arm/lceil-vcvt_1.c
trunk/gcc/testsuite/gcc.target/arm/lfloor-vcvt_1.c
trunk/gcc/testsuite/gcc.target/arm/lround-vcvt_1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/arm/iterators.md
trunk/gcc/config/arm/vfp.md
trunk/gcc/testsuite/ChangeLog