public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [RFC] Support register groups in inline asm
@ 2016-11-15 17:37 Andrew Senkevich
  2016-11-16  5:02 ` Andrew Pinski
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Senkevich @ 2016-11-15 17:37 UTC (permalink / raw)
  To: GCC Mailing List, Jeff Law, Kirill Yukhin

Hi,

new Intel instructions AVX512_4FMAPS and AVX512_4VNNIW introduce use
of register groups.

To support register groups feature in inline asm needed some extension
with new constraints.

Current proposal is the following syntax:

__asm__ (“SMTH %[group], %[single]" :
                                                            [single] "+x"(v0) :
                                                            [group]
"Yg4"(v1),  “1+1"(v2), “1+2"(v3), “1+3"(v4));

where "YgN" constraint specifies group of N consecutive registers
(which is started from register having number as "0 mod
2^ceil(log2(N))"),
and "1+K" specifies the next registers in the group.

Is this syntax ok? How to implement it?

Any comments or proposals will be appreciated, thanks.


--
WBR,
Andrew

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

end of thread, other threads:[~2017-03-16  9:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-15 17:37 [RFC] Support register groups in inline asm Andrew Senkevich
2016-11-16  5:02 ` Andrew Pinski
2016-12-05 15:32   ` Andrew Senkevich
2017-03-15 14:59     ` Andrew Senkevich
2017-03-16  8:50       ` Richard Biener
2017-03-16  9:29         ` Andrew Senkevich

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).