This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/62275] ARM should use vcvta instructions when possible for float -> int rounding


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]