[PATCH,rs6000] GCC -7, no swap optimization for vpermxor instruction

Segher Boessenkool segher@kernel.crashing.org
Thu Mar 22 23:37:00 GMT 2018


Hi Carl,

On Thu, Mar 22, 2018 at 08:48:33AM -0700, Carl Love wrote:
> The patch adds UNSPEC_VPERMXOR to the list of instruction to not apply
> swap optimization to. A new test case was added to verify the results
> with -O2 match the expected results from -O0.

> Backport: UNSPEC_VPERMXOR fix from mainline commit 258530:
> 2018-03-21  Carl Love  <cel@us.ibm.com>
> 
> 	* config/rs6000/r6000.c (rtx_is_swappable_p): Add case UNSPEC_VPERMXOR.
> 
> gcc/testsuite/ChangeLog:
> 
> 2018-03-21  Carl Love  <cel@us.ibm.com>
> 	* gcc.target/powerpc/crypto-builtin-1-runnable.c: New test file.

Okay for both 7 and 6.  Thanks


Segher



More information about the Gcc-patches mailing list