simplify-rtx.c (simplify_binary_operation): Unfactor the shift and rotate cases.
* simplify-rtx.c (simplify_binary_operation): Unfactor the shift and rotate cases. <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics. * gcc.target/ppc-eq0-1.c: New test case. * gcc.target/ppc-negeq0-1.c: New test case. From-SVN: r114239
Showing
- gcc/ChangeLog 7 additions, 0 deletionsgcc/ChangeLog
- gcc/simplify-rtx.c 26 additions, 2 deletionsgcc/simplify-rtx.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.target/powerpc/ppc-eq0-1.c 10 additions, 0 deletionsgcc/testsuite/gcc.target/powerpc/ppc-eq0-1.c
- gcc/testsuite/gcc.target/powerpc/ppc-negeq0-1.c 15 additions, 0 deletionsgcc/testsuite/gcc.target/powerpc/ppc-negeq0-1.c
Loading
Please register or sign in to comment