fold-const.c (comparison_to_compcode): New function to convert an comparison…
fold-const.c (comparison_to_compcode): New function to convert an comparison TREE CODE into a bit-based representation. * fold-const.c (comparison_to_compcode): New function to convert an comparison TREE CODE into a bit-based representation. (compcode_to_comparison): New function to convert from this bit based representation back to a comparison TREE CODE. (fold_truthop): Simplify (x<y) && (x==y) and related composite comparisons. * gcc.c-tortuture/execute/compare-1.c: New test case. * gcc.c-tortuture/execute/compare-2.c: New test case. * gcc.c-tortuture/execute/compare-3.c: New test case. From-SVN: r54647
Showing
Please
register
or
sign in
to comment