]> gcc.gnu.org Git - gcc.git/commit
fold-const.c (comparison_to_compcode): New function to convert an comparison TREE...
authorRoger Sayle <roger@eyesopen.com>
Sat, 15 Jun 2002 16:55:24 +0000 (16:55 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sat, 15 Jun 2002 16:55:24 +0000 (16:55 +0000)
commit8dcb27ed86eb249675749e35b1440a8ccfd03881
treec9fc91c5bbced804e712ce47aaa7397c5a3ed98d
parentf7d3c5f00586f93c1a5a46ebbffa14dce150aae7
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
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/compare-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/compare-2.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/compare-3.c [new file with mode: 0644]
This page took 0.058898 seconds and 5 git commands to generate.