[Bug c/39531] New: m68k gcc does not convert andil to bclr when compiled on a 64bit host
radford at blackbean dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 23 19:10:00 GMT 2009
The following function will use a bclr on a 32 bit host and a andil on a 64bit
host.
int f(int x) { return x & 0x7fffffff; }
This is caused by a missing & 0xffffffff the expression
exact_log2 (~ INTVAL (operands[2])))
in output_andsi3.
--
Summary: m68k gcc does not convert andil to bclr when compiled on
a 64bit host
Product: gcc
Version: 4.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: radford at blackbean dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: m68k-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39531
More information about the Gcc-bugs
mailing list