http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51455
Jakub Jelinek changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51455
--- Comment #4 from Jakub Jelinek 2011-12-07
19:30:21 UTC ---
Probably time for you to read the docs.
E.g. AMD 24592 pdf, in 3.1.2 says:
"In general, byte and word operands are stored in the low 8 or 16
bits of GPRs without modifying their high 5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51455
--- Comment #3 from Andrew Pinski 2011-12-07
19:28:29 UTC ---
movzbl 0x20d(%rsp),%eax
is the same as:
movzbq 0x20d(%rsp),%rax
as all l instructions zero extend to q.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51455
--- Comment #2 from frederik.deweerdt at gmail dot com 2011-12-07 19:25:30 UTC
---
(In reply to comment #1)
> ((unsigned char *)offsets)[index] still sign extends to int.
I'm not sure how to parse this. My problem is that '((unsigned char
*)offse
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51455
--- Comment #1 from Andrew Pinski 2011-12-07
19:10:55 UTC ---
((unsigned char *)offsets)[index] still sign extends to int.