rs6000: Support UN[GL][ET] in rs6000_maybe_emit_maxc_minc [PR105002]
authorKewen Lin <linkw@linux.ibm.com>
Wed, 6 Apr 2022 03:18:30 +0000 (22:18 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Wed, 6 Apr 2022 03:18:30 +0000 (22:18 -0500)
commit83b43c74bbbdc6b6903350b220b932c6f774bdfd
treef52493d6832c2513e0e32d760107fe610e548bdd
parent9d84ed6812dce4a50e64334e7cc4abdeebe41523
rs6000: Support UN[GL][ET] in rs6000_maybe_emit_maxc_minc [PR105002]

Commit r12-7687 exposed one miss optimization chance in function
rs6000_maybe_emit_maxc_minc, for now it only considers comparison
codes GE/GT/LE/LT, but it can support more variants with codes
UNLT/UNLE/UNGT/UNGE by reversing them into the equivalent ones
with GE/GT/LE/LT.

gcc/ChangeLog:

PR target/105002
* config/rs6000/rs6000.cc (rs6000_maybe_emit_maxc_minc): Support more
comparison codes UNLT/UNLE/UNGT/UNGE.
gcc/config/rs6000/rs6000.cc