-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DWARF expression: Extracting a range of bits in an xmm register #553
Comments
If you need the value then I think you need to use |
You probably need to look at how your intended consumer handles these to be certain (or gdb/lldb if you want this for general use). |
Thanks for pointing out the |
Hi @philipc !
I was testing whether I could access the higher order 32-bits in
I couldn't think of a way to implement an "32-bit value extract" operation from an xmm register without using a shift on its 128-bit value. Could you please provide any pointers on this? Thanks! |
So we need to know how to encode this in a way that gdb can support it, which sounds like more of a question for gdb folks. You could try the gdb mailing list, or maybe @tromey is able to answer this. |
This may be of interest to you: https://llvm.org/docs/AMDGPUDwarfExtensionsForHeterogeneousDebugging.html |
Hi,
I am trying to build a DWARF expression using
gimli
, which involves extracting a range of bits from anxmm
register e.g. 32-63 bits fromxmm0
.But I found that the DWARF4 standard, section 2.5.1 mentions :
So it seems that - if we have a 32-bit machine, value of an 128-bit register such as xmm0 would be truncated to 32 bits.
Could you please confirm this and let me know if I'm missing something?
Thanks!
The text was updated successfully, but these errors were encountered: