See updated part 3 of the patch in attachment. New ChangeLog are as follows
*** gcc/ChangeLog *** 2014-04-23 Thomas Preud'homme <thomas.preudho...@arm.com> PR tree-optimization/54733 * tree-ssa-math-opts.c (find_bswap_load): Renamed to ... (find_bswap_or_nop_load): This. (find_bswap_1): Renamed to ... (find_bswap_or_nop_1): This. (find_bswap): Renamed to ... (find_bswap_or_nop): This. Also add detection of bitwise operations equivalent to load in host endianness. (execute_optimize_bswap): Likewise. *** gcc/testsuite/ChangeLog *** 2014-04-23 Thomas Preud'homme <thomas.preudho...@arm.com> PR tree-optimization/54733 * gcc.dg/optimize-bswapdi-3.c: Extend test to check detection of bitwise operation equivalent to load in host endianness. * gcc.dg/optimize-bswaphi-1.c: Likewise. * gcc.dg/optimize-bswapsi-2.c: Likewise. Bootstrapped on x86_64-linux-gnu with no testsuite regression. Also did a arm-none-eabi cross build with no regression after running testsuite via qemu Best regards, Thomas
gcc32rm-84.4.0.part3.diff
Description: Binary data