This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Using gen_int_mode instead of GEN_INT minor testsuite fallout on MIPS
- From: Mike Stump <mikestump at comcast dot net>
- To: Richard Sandiford <rdsandiford at googlemail dot com>
- Cc: Richard Biener <richard dot guenther at gmail dot com>, Graham Stott <graham dot stott at btinternet dot com>, James Greenhalgh <james dot greenhalgh at arm dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 14 Sep 2013 11:14:38 -0700
- Subject: Re: Using gen_int_mode instead of GEN_INT minor testsuite fallout on MIPS
- Authentication-results: sourceware.org; auth=none
- References: <CAFiYyc3o+GLpPnNb=E1ru9rOJxuVkxBMsMEeE99wRm8SRWrmCg at mail dot gmail dot com> <1378833157-11511-1-git-send-email-james dot greenhalgh at arm dot com> <87y574mr2h dot fsf at talisman dot default> <1378900963 dot 71148 dot YahooMailNeo at web87402 dot mail dot ir2 dot yahoo dot com> <87y573kxse dot fsf at talisman dot default> <CAFiYyc1aR91hKgkGMbLfVtH0vmXOBPruaiPRqQ5-FCA5gTDMWg at mail dot gmail dot com> <87ppseko71 dot fsf at talisman dot default> <CAFiYyc36vmFX0HneNXQFcBT5ajGZ2fapVCX08DBR-x+LY7h1mQ at mail dot gmail dot com> <87d2odkuu7 dot fsf at talisman dot default> <0F11E779-5DA9-43E6-A12F-64A66B147AF7 at comcast dot net> <87y56zkcff dot fsf at talisman dot default>
On Sep 14, 2013, at 1:57 AM, Richard Sandiford <rdsandiford@googlemail.com> wrote:
> How about a three-operand version: the name of the partial mode,
> the name of the memory mode, and the precision?
I like creating the name via algorithm. It leads to predictable names, and easy to understand names. P60DI is obvious to all… P20SI equally is obvious to all. But, if people like the ability to name the mode, certainly adding a parameter for the name is trivial enough to do.
> "PTI" and "P128TI" are a bit confusing for the (hacky) powerpc usage, since 128 bits
> isn't partial.
Arguably what rs6000 is doing is unholy. I'd welcome someone to find the right solution to their problem and fix it in a better way; the use of partial isn't the right solution.