Andrew Pinski <pins...@gmail.com> writes: > On Fri, Aug 18, 2017 at 12:17 PM Andrew Pinski <pins...@gmail.com> wrote: >> >> Like https://gcc.gnu.org/ml/gcc-patches/2010-09/msg00060.html for >> PowerPC, we should do something similar for aarch64. This pattern >> does show up in SPEC CPU 2006 in astar but I did not look into >> performance improvement of it though. >> >> OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions. > > Ping? I has been over 2 years now too.
I think it'd better to do this in match.pd, folding to IFN_TRUNC. The rule will then automatically check whether the target supports IFN_TRUNC/btrunc_optab for the required mode. Thanks, Richard