[llvm-commits] [PATCH]: PowerPC64, wrong mixing of CTR and CTR8

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Jun 2 16:58:09 PDT 2011


On Jun 2, 2011, at 12:44 PM, Roman Divacky wrote:

> Hi,
> 
> On PowerPC64 when lowering BRIND (indirect branch) for PPC64 the "mtctr"
> instruction is pointed to a "wrong" bctr instruction. Ie. one that uses "CTR"
> instead of "CTR8". This causes http://llvm.org/bugs/show_bug.cgi?id=8487 .
> 
> CTR8 is also omitted when seting HasCTRSet in hazard recognizer. And also
> wrong CTR variant is used when emitting indirect call on PPC64.
> 
> The attached patch fixes all of that (+ test). We're now able to compile
> stuff like "ls" or "sh" on FreeBSD/PowerPC. OK to commit?

Very nice!

LGTM.

/jakob




More information about the llvm-commits mailing list