Roman Divacky
2011-Jun-16 15:27 UTC
[LLVMdev] [PATCH]: PowerPC64 register/instruction fixes
Hi there! The attached patch fixes a few places where 32bit register classes or instructions are used on PowerPC64. This lets me compile a working "vim" at -O0 on PowerPC64/FreeBSD. Previously it would crash the compiler with llvm_unreachable("Impossible reg-to-reg copy"); As it was mixing 64 bit registers with 32bit ones. Vim compiled with -O2 still crashes. OK to commit? roman -------------- next part -------------- A non-text attachment was scrubbed... Name: powerpc-misc-64bit.patch Type: text/x-diff Size: 2851 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110616/6e3451a5/attachment.patch>
Jakob Stoklund Olesen
2011-Jun-16 15:36 UTC
[LLVMdev] [PATCH]: PowerPC64 register/instruction fixes
On Jun 16, 2011, at 8:27 AM, Roman Divacky wrote:> Hi there! > > The attached patch fixes a few places where 32bit register classes > or instructions are used on PowerPC64. > > This lets me compile a working "vim" at -O0 on PowerPC64/FreeBSD. Previously > it would crash the compiler with > > llvm_unreachable("Impossible reg-to-reg copy"); > > > As it was mixing 64 bit registers with 32bit ones. Vim compiled with -O2 > still crashes. > > > OK to commit?Looks good, but please include testcases. /jakob