https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15533
--- Comment #6 from Uroš Bizjak ---
(In reply to Cesar Eduardo Barros from comment #0)
> When compiling:
> #include
> #define regparm __attribute__((regparm(3)))
> uint8_t a;
> uint16_t regparm fn(uint16_t b)
> { return (b & ~0xFF) | a; }
This
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15533
Peter Cordes changed:
What|Removed |Added
CC||peter at cordes dot ca
--- Comment #5 fro
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15533
--- Comment #4 from Andrew Pinski ---
This looks improved in GCC 4.4.7 and above:
fn(unsigned short):
movzbl a, %edx
xorb%al, %al
orl %edx, %eax
ret
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15533
--- Comment #3 from Uros Bizjak 2012-01-08 19:55:00
UTC ---
We do in fact have comment in i386.md:
;; Logical inclusive and exclusive OR instructions
;; %%% This used to optimize known byte-wide and operations to memory.
;; If this is considere
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15533
Andrew Pinski changed:
What|Removed |Added
Component|rtl-optimization|target
--- Comment #2 from Andrew Pinski