public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] x86: operand handling consolidation
@ 2017-12-15  9:54 Jan Beulich
  2017-12-15 10:32 ` [PATCH 1/4] x86: replace Reg8, Reg16, Reg32, and Reg64 Jan Beulich
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Jan Beulich @ 2017-12-15  9:54 UTC (permalink / raw)
  To: binutils; +Cc: H.J. Lu

This is another step towards a better maintainable opcode table.
The 4th patch does only a first part of the then possible template
reduction. Something similar ought to be possible for AVX512 ones,
just that the broadcasting then needs dealing with in tc-i386.c.

As to further table size reduction, there are two choices:
- keep Reg8 etc and drop now redundant Byte from such
  templates
- replace Reg8 etc by just Reg, keeping Byte etc
I'd prefer the former (and the 4th patch moves along those
lines for RegXMM and RegYMM), not the least for the bigger
win in readability.

1: replace Reg8, Reg16, Reg32, and Reg64
2: drop FloatReg and FloatAcc
3: fold RegXMM/RegYMM/RegZMM into RegSIMD
4: fold certain AVX and AVX2 templates

Just for reference I'm also going to send a 5th patch which I've
used to find the templates which need splitting (in patch 1, other
than I had feared there were no splits necessary in patch 3). I
didn't want to rely on just the testsuite to spot them all. I don't
anticipate that this patch will want committing, but if others
think it's worthwhile I could certainly bring it into committable
shape.

Jan

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2018-01-02 10:49 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-15  9:54 [PATCH 0/4] x86: operand handling consolidation Jan Beulich
2017-12-15 10:32 ` [PATCH 1/4] x86: replace Reg8, Reg16, Reg32, and Reg64 Jan Beulich
2017-12-15 12:46   ` H.J. Lu
2017-12-15 10:33 ` [PATCH 2/4] x86: drop FloatReg and FloatAcc Jan Beulich
2017-12-15 12:47   ` H.J. Lu
2017-12-15 10:34 ` [PATCH 3/4] x86: fold RegXMM/RegYMM/RegZMM into RegSIMD Jan Beulich
2017-12-15 12:50   ` H.J. Lu
2017-12-15 16:22     ` Jan Beulich
2017-12-15 16:28       ` H.J. Lu
2017-12-15 16:36         ` Jan Beulich
2017-12-15 16:41           ` H.J. Lu
2017-12-15 10:35 ` [PATCH 4/4] x86: fold certain AVX and AVX2 templates Jan Beulich
2017-12-15 13:10   ` H.J. Lu
2017-12-15 16:32     ` Jan Beulich
2017-12-15 16:49       ` H.J. Lu
2017-12-21 10:07   ` Jan Beulich
2017-12-22  8:54   ` Alan Modra
2018-01-02 10:49     ` Jan Beulich
2017-12-18  8:03 ` [PATCH 5/4] x86: helper changes to i386-gen.c Jan Beulich
2017-12-18 11:25   ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).