mbox series

[V4,0/5] Add more user friendly TARGET_ names for PowerPC

Message ID ZzhQsmP5dB9swyYq@cowardly-lion.the-meissners.org
Headers show
Series Add more user friendly TARGET_ names for PowerPC | expand

Message

Michael Meissner Nov. 16, 2024, 7:58 a.m. UTC
Peter Bergner asked me to reorganize my V3 patch that separates the
architecture bits (set via -mcpu=<xxx>) compared to the ISA bits that are based
on options.

Here is the beginning of the V3 patch for reference:

https://gcc.gnu.org/pipermail/gcc-patches/2024-November/668643.html

As Peter has suggested, I reworked the patch so the the bits where I rename the
target flags comes before the bit about separating the architecture bits.  I
also moved the -mcpu=future bits before the architecture bits as well.

There are 4 separate patch sets (that might have separate patches within the
patch sets).  Each of the patch sets is a logical entity.

The 4 patch sets are:

    1:	Rename the TARGET_<xxx> options so that they say TARGET_POWER5 instead
	of TARGET_POPCNTB.  In this patch set, TARGET_POWER5 is a macro that
	references TARGET_POPCNTB.  The 5 patches in this patch set rename each
	option in turn.

    2:	Add support for -mcpu=future.  Because the architecture mask support is
	in the 4th patch set, this patch set adds a dummy switch -mfuture.

    3:	Make -mvsx not internally set -mcpu=power7.  This has come up in
	several bugs.  This is independent of the other patches, and can be
	omitted if desired.

    4:	The last patch set now provides the separation between the architecture
	bits and the ISA bits.  It removes several of the dummy switches
	(-mpower10, -mpower11, -mfuture) that were added to support those
	processors, but users aren't supposed to use those options.

This patch set is the first patch set.  The are 5 patches within the patch set:

    1:	Use TARGET_POWER5 instead of TARGET_POPCNTB.  Note, the -mpopcntb and
	-mno-popcntb options will control the population count and pairty
	instructions, but all other uses will now use TARGET_POWER5.

    2:	Use TARGET_POWER5X instead of TARGET_FPRND.

    3:	Use TARGET_POWER6 instead of TARGET_CMPB.

    4:	Use TARGET_POWER7 instead of TARGET_POWER7.  Like TARGET_POWER5, the
	TARGET_POPCNTD condition is used to control the power7 population count
	instructions, but TARGET_POWER7 is used elsewhere.

    5:	Use TARGET_POWER9 instead of TARGET_MODULO.

These patches have been tested on both little endiand and big endian systems.
Can I check these changes into GCC 15?

Comments

Michael Meissner Dec. 4, 2024, 7:38 a.m. UTC | #1
Ping patches 1-5 to Add more user friendly TARGET_ names for PowerPC:

Message-ID <ZzhQsmP5dB9swyYq@cowardly-lion.the-meissners.org>

Information for patch set:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669067.html

Patch #1, Change TARGET_POPCNTB to TARGET_POWER5:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669068.html

Patch #2: Change TARGET_FPRND to TARGET_POWER5X:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669069.html

Patch #3: Change TARGET_CMPB to TARGET_POWER6:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669070.html

Patch #4: Change TARGET_POPCNTD to TARGET_POWER7:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669071.html

Patch #5: Change TARGET_MODULO to TARGET_POWER9:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669072.html
Michael Meissner Jan. 9, 2025, 6 p.m. UTC | #2
Ping patches 1-5 to Add more user friendly TARGET_ names for PowerPC:

Message-ID <ZzhQsmP5dB9swyYq@cowardly-lion.the-meissners.org>

Information for patch set:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669067.html

Patch #1, Change TARGET_POPCNTB to TARGET_POWER5:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669068.html

Patch #2: Change TARGET_FPRND to TARGET_POWER5X:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669069.html

Patch #3: Change TARGET_CMPB to TARGET_POWER6:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669070.html

Patch #4: Change TARGET_POPCNTD to TARGET_POWER7:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669071.html

Patch #5: Change TARGET_MODULO to TARGET_POWER9:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669072.html
Michael Meissner Jan. 23, 2025, 8:15 p.m. UTC | #3
Ping patches 1-5 to Add more user friendly TARGET_ names for PowerPC:

Message-ID <ZzhQsmP5dB9swyYq@cowardly-lion.the-meissners.org>

Information for patch set:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669067.html

Patch #1, Change TARGET_POPCNTB to TARGET_POWER5:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669068.html

Patch #2: Change TARGET_FPRND to TARGET_POWER5X:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669069.html

Patch #3: Change TARGET_CMPB to TARGET_POWER6:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669070.html

Patch #4: Change TARGET_POPCNTD to TARGET_POWER7:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669071.html

Patch #5: Change TARGET_MODULO to TARGET_POWER9:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669072.html
Michael Meissner Feb. 13, 2025, 12:58 a.m. UTC | #4
Ping patches 1-5 to Add more user friendly TARGET_ names for PowerPC:

Note, I will be away on vacation from Tuesday February 25th through Friday
March 7th.  At this point of time, I do not anticipate bringing a laptop that I
can respond to emails on this account.

Message-ID <ZzhQsmP5dB9swyYq@cowardly-lion.the-meissners.org>

Information for patch set:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669067.html

Patch #1, Change TARGET_POPCNTB to TARGET_POWER5:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669068.html

Patch #2: Change TARGET_FPRND to TARGET_POWER5X:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669069.html

Patch #3: Change TARGET_CMPB to TARGET_POWER6:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669070.html

Patch #4: Change TARGET_POPCNTD to TARGET_POWER7:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669071.html

Patch #5: Change TARGET_MODULO to TARGET_POWER9:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669072.html