[Bug target/64505] New: Powerpc compiler generates insn not found for -m32 -mpowerpc64
meissner at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 5 21:04:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64505
Bug ID: 64505
Summary: Powerpc compiler generates insn not found for -m32
-mpowerpc64
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: meissner at gcc dot gnu.org
Reporter: meissner at gcc dot gnu.org
Host: powerpc64-unknown-linux-gnu
Target: powerpc64-unknown-linux-gnu
Build: powerpc64-unknown-linux-gnu
Created attachment 34384
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34384&action=edit
File that shows the problem
Compiling the attached file will generate an insn not found error message if it
is compiled with the following options: -std=c99 -fno-strict-aliasing -Wall
-m32 -mpowerpc64 foo.c -S -O2.
The problem is inside of rs6000_secondary_reload, there is code for 64-bit and
32-bit. The reload insn that is returned is looking for a 64-bit scratch
register, but the combination of switches -m32 -mpowerpc64 it should be
generating a 32-bit scratch register.
More information about the Gcc-bugs
mailing list