]> gcc.gnu.org Git - gcc.git/commit
PowerPC: Rename functions for min, max, cmove.
authorMichael Meissner <meissner@linux.ibm.com>
Tue, 1 Sep 2020 05:08:06 +0000 (01:08 -0400)
committerMichael Meissner <meissner@linux.ibm.com>
Tue, 1 Sep 2020 05:08:06 +0000 (01:08 -0400)
commit1db00b690b5c1c77629a126d1d0e888706b60d50
treeda9b641f9903760b53b49b280213853c8c7faa28
parent08ec2f30db220b7ceacb60f6db394ef0ad21fb9c
PowerPC: Rename functions for min, max, cmove.

This patch renames the functions that generate the ISA 3.0 C minimum, C
maximum, and conditional move instructions to use a better name than just using
a _p9 suffix.  Because the functions can fail, the names use "maybe_emit"
instead of "generate_" in the name.

I have built compilers on a little endian power9 Linux system with all 4
patches applied.  I did bootstrap builds and ran the testsuite, with no
regressions.  Previous versions of the patch was also tested on a little endian
power8 Linux system.  I would like to check this patch into the master
branch for GCC 11.  At this time, I do not anticipate needing to backport these
changes to GCC 10.3.

gcc/
2020-09-01  Michael Meissner  <meissner@linux.ibm.com>

* config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): Rename to
maybe_emit_fp_c_minmax.
(maybe_emit_fp_c_minmax): Rename rs6000_emit_p9_fp_minmax.  Return
bool instead of int.
(rs6000_emit_p9_fp_cmove): Rename to maybe_emit_fp_cmove.
(maybe_emit_fp_cmove): Rename rs6000_emit_p9_fp_cmove.  Return
bool instead of int.
(have_compare_and_set_mask): New helper function.
(rs6000_emit_cmove): Rework support of ISA 3.0 functions to
generate "C" minimum, "C" maximum, and conditional move
instructions for scalar floating point.
gcc/config/rs6000/rs6000.c
This page took 0.059554 seconds and 6 git commands to generate.