https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64358
--- Comment #4 from Pat Haugen <pthaugen at gcc dot gnu.org> --- Author: pthaugen Date: Tue Jan 13 19:08:49 2015 New Revision: 219548 URL: https://gcc.gnu.org/viewcvs?rev=219548&root=gcc&view=rev Log: Backport from mainline 2014-12-20 Segher Boessenkool <seg...@kernel.crashing.org> PR target/64358 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Swap the input operands if only the second is inverted. * config/rs6000/rs6000.md (*boolc<mode>3_internal1 for BOOL_128): Swap BOOL_REGS_OP1 and BOOL_REGS_OP2. Correct arguments to rs6000_split_logical. (*boolc<mode>3_internal2 for TI2): Swap operands[1] and operands[2]. Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/config/rs6000/rs6000.c branches/gcc-4_8-branch/gcc/config/rs6000/rs6000.md