[llvm] r177423 - Prepare to make r0 an allocatable register on PPC

Kai Nacke kai at redstar.de
Sat Mar 23 14:45:18 PDT 2013


On 19.03.2013 19:51, Hal Finkel wrote:
> Author: hfinkel
> Date: Tue Mar 19 13:51:05 2013
> New Revision: 177423
>
> URL: http://llvm.org/viewvc/llvm-project?rev=177423&view=rev
> Log:
> Prepare to make r0 an allocatable register on PPC
>
[..]
> As r0 is still reserved, no functionality change intended.
[..]

Hi Hal!

This commit broke the LDC compiler on Linux/PPC64. I get the following 
assertion error:

Unhandled reg in PPCRegisterInfo::getRegisterNumbering!
UNREACHABLE executed at 
/home/u0012540/llvm/lib/Target/PowerPC/MCTargetDesc/PPCBaseInfo.h:64!

Root cause is that the register passed to getRegisterNumbering is 
ZERO/ZERO8, which is not handled in this method. I have some trouble to 
create a test case for this. For know I only tracked the problem to this 
commit.

Regards
Kai




More information about the llvm-commits mailing list