From: "H.J. Lu" <hjl.tools@gmail.com>
To: "Mark Kettenis" <mark.kettenis@xs4all.nl>
Cc: gdb-patches@sourceware.org
Subject: Re: PATCH: Extend gdb remote protocol for AVX
Date: Tue, 28 Oct 2008 14:11:00 -0000 [thread overview]
Message-ID: <6dc9ffc80810272258m60f6d1c6w54b012ee90346b21@mail.gmail.com> (raw)
In-Reply-To: <6dc9ffc80810121517n1581323cl21808a5f99cce13d@mail.gmail.com>
On Sun, Oct 12, 2008 at 3:17 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Sun, Oct 12, 2008 at 6:37 AM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
>>> Gcc 4.4 supports AVX. Gcc uses the same register number internally
>>> for xmm0 and ymm0. It has no problems with register allocator.
>>
>> I guess that makes sense. Otherwise the register allocator might
>> think it can use xmm0 independently from ymm0.
>>
>>> > We really should make sure the DWARF register number mapping in the
>>> > AMD64 psABI gets updated for these new registers. Given the way the
>>> > current mapping us defined for %stN and %mmN, it probably makes sense
>>> > to give %ymmN their own numbers.
>>> >
>>>
>>> The AVX x86-64 psABI extension is at
>>>
>>> http://gcc.gnu.org/ml/gcc/2008-06/msg00408.html
>>>
>>> The ia32 psABI extension is similar to SSE. The only difference is
>>> __m256 requires 32byte alignment, instead of 16btye.
>>
>> And it doesn't mention the DWARF debug register mapping. That's sad.
>>
>>> I removed AVX register map:
>>>
>>> http://sourceware.org/ml/binutils/2008-08/msg00010.html
>>>
>>> since xmm/ymm registers are all caller-saved and there are
>>> no xmm/ymm registers in unwind info.
>>
>> That's a mistake. Unwind info for signal handlers should mention
>> xmm/ymm registers. Although I'm not sure how one would express the
>> xsave layout in DWARF.
>
> I removed ymm register map. But I reserved those ranges for future
> ymm register use. If it turns out that we really need them, we can
> reenable the map. So far I haven't found xmm register map is used
> anywhere, including signal handler.
>
>>
>>> For debug info, we can tell ymm from xmm with data size.
>>
>> But what should "info address" display for a variable stored in a %ymm
>> register? If we can't distinguish between the two, we'll probably end
>> up printing %xmm.
>>
>
> We can treat variables in xmm/ymm the same way as variables in al/ax/eax/rax.
>
> Thanks.
>
Are there any objections to my AVX patch?
Thanks.
--
H.J.
next prev parent reply other threads:[~2008-10-28 5:59 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-18 17:28 H.J. Lu
2008-09-18 17:51 ` Mark Kettenis
2008-09-18 18:20 ` Mark Kettenis
2008-09-18 18:31 ` H.J. Lu
2008-09-18 18:34 ` Daniel Jacobowitz
2008-09-18 19:03 ` H.J. Lu
2008-09-18 19:39 ` Daniel Jacobowitz
2008-09-18 20:13 ` H.J. Lu
2008-09-18 20:24 ` Daniel Jacobowitz
2008-10-02 10:29 ` Mark Kettenis
2008-10-02 14:16 ` H.J. Lu
2008-10-04 20:52 ` Mark Kettenis
2008-10-04 22:14 ` Daniel Jacobowitz
2008-10-05 14:37 ` H.J. Lu
2008-10-06 21:35 ` Mark Kettenis
2008-10-07 19:22 ` H.J. Lu
2008-10-12 13:39 ` Mark Kettenis
2008-10-12 22:18 ` H.J. Lu
2008-10-28 14:11 ` H.J. Lu [this message]
2008-10-28 14:18 ` Daniel Jacobowitz
2008-10-28 17:29 ` Mark Kettenis
2008-10-29 7:41 ` H.J. Lu
2008-10-29 16:45 ` Mark Kettenis
2008-10-29 2:00 ` H.J. Lu
2008-10-29 2:16 ` Daniel Jacobowitz
2008-10-04 22:22 ` H.J. Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6dc9ffc80810272258m60f6d1c6w54b012ee90346b21@mail.gmail.com \
--to=hjl.tools@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox