public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/6] x86: introduce "templated" insn templates
@ 2020-03-06  8:09 Jan Beulich
  2020-03-06  8:11 ` [PATCH 1/6] x86: allow opcode templates to be templated Jan Beulich
                   ` (5 more replies)
  0 siblings, 6 replies; 27+ messages in thread
From: Jan Beulich @ 2020-03-06  8:09 UTC (permalink / raw)
  To: binutils; +Cc: H.J. Lu

For a long time it has been bothering me that there are in part
_very_ large groups of insn templates differing in only very
small details. Such bears the risk of some of them going out of
sync in minor details, or some being actually omitted (see
patch 4 for an example of the latter). And of course the opcode
table as a whole becomes easier to read and maintain when there
are fewer almost identical lines (an example of this effect can
be observed in patch 2).

The approach chosen involves i386-gen to do the expansion of
the templates. I did consider alternatives:

But I decided that the chose approach is, at least as an initial
step, the most flexible and least clumsy one. Down the road I
may continue to think about deferring expansion to early runtime
of the assembler, when it populates the mnemonics hash table.

1: x86: allow opcode templates to be templated
2: x86-64: Intel64 adjustments for conditional jumps
3: x86: use template for SSE floating point comparison insns
4: x86: use template for AVX/AVX512 floating point comparison insns
5: x86: use template for XOP integer comparison, shift, and rotate insns
6: x86: use template for AVX512 integer comparison insns

Jan

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

end of thread, other threads:[~2020-04-24 12:59 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06  8:09 [PATCH 0/6] x86: introduce "templated" insn templates Jan Beulich
2020-03-06  8:11 ` [PATCH 1/6] x86: allow opcode templates to be templated Jan Beulich
2020-03-06 14:42   ` H.J. Lu
2020-03-06 14:51     ` Jan Beulich
2020-03-06 15:38       ` H.J. Lu
2020-03-09  9:19     ` Jan Beulich
2020-03-09 12:15       ` H.J. Lu
2020-03-06  8:12 ` [PATCH 2/6] x86-64: Intel64 adjustments for conditional jumps Jan Beulich
2020-03-06 14:40   ` H.J. Lu
2020-03-06 14:54     ` Jan Beulich
2020-03-06 15:35       ` H.J. Lu
2020-03-09  7:11         ` Jan Beulich
2020-03-09 12:13           ` H.J. Lu
2020-03-11  8:59             ` Jan Beulich
2020-03-11 10:32               ` H.J. Lu
2020-04-24  6:36             ` Jan Beulich
2020-04-24 12:58               ` H.J. Lu
2020-03-06  8:12 ` [PATCH 3/6] x86: use template for SSE floating point comparison insns Jan Beulich
2020-03-06 14:43   ` H.J. Lu
2020-03-06  8:13 ` [PATCH 5/6] x86: use template for XOP integer comparison, shift, and rotate insns Jan Beulich
2020-03-06 14:46   ` H.J. Lu
2020-03-06  8:13 ` [PATCH 4/6] x86: use template for AVX/AVX512 floating point comparison insns Jan Beulich
2020-03-06 14:45   ` H.J. Lu
2020-03-06 14:57     ` Jan Beulich
2020-03-06 15:32       ` H.J. Lu
2020-03-06  8:14 ` [PATCH 6/6] x86: use template for AVX512 integer " Jan Beulich
2020-03-06 14:46   ` 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).