This is the mail archive of the gcc-patches@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]

Re: [PATCH] i386: Expand roundeven for SSE4.1+


Hi.
Thanks for the heads up. I did successful bootstrap build and
regression testing on x86_64-linux-gnu for the above patch and have
the test summary diff for patched and unpatched versions, but I do not
know if it has passed the regression test or not hence attaching the
diff here.

Thanks,
Tejas

On Mon, 15 Jul 2019 at 01:48, Uros Bizjak <ubizjak@gmail.com> wrote:
>
> > This patch is for expanding roundeven inline for SSE4.1 and later.
> > Note that this patch is to be applied on top of
> > <https://gcc.gnu.org/ml/gcc-patches/2019-06/msg01828.html>. The patch
> > is bootstrapped and regression tested on x86_64-linux-gnu.
>
> Actually, your patch at [1] is the way to go, but you need several
> other changes to get x87 mode switching in order. Please also note
> that there is no corresponding non-SSE4 ix86_expand_... function for
> roundeven, so non-SSE4 SSE FP-math <rounding_insn><mode>2 expander has
> to be disabled for ROUNDEVEN int iterator. Please see (otherwise
> untested) attached patch which fixes both issues.
>
> [1] https://gcc.gnu.org/ml/gcc/2019-06/msg00352.html
>
> Uros.

Attachment: test_results.diff.txt
Description: Text document


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