[PATCH][ARM][1/2] Implement lceil, lfloor, lround optabs with new ARMv8-A instructions

Kyrill Tkachov kyrylo.tkachov@arm.com
Tue Sep 2 15:34:00 GMT 2014

Hi all,

This patch implements the {lceil, lfloor, lround}si{sf, df}2 optabs in a 
similar way to fcvt in aarch64. We use the new ARMv8 FP convert with 
rounding instructions vcvt{a,p,m} for that.

Bootstrapped and tested on arm-none-linux-gnueabihf.

Ok for trunk?


2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     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.

2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm-vcvt.patch
Type: text/x-patch
Size: 4844 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140902/76387319/attachment.bin>

More information about the Gcc-patches mailing list