[LLVMdev] Paired register allocation problem

Artur Pietrek pietreka at gmail.com
Mon Feb 22 05:30:46 PST 2010


Hi All,
My target has 32bit registers, but  it has some 64bit instructions which are
using pairs of these 32bit registers.
I have defined registers, aliases and subregister set.
The problem is that register allocator is using 32bit registers that are
already used in a pair, for example:

lw $r0, 16[$r12]   // load word to r0
ld $p0, 36[$r12]   // load doubleword to p0
shl $p0, $p0, $r0    // shift left p0 by r0  and store result in p0

where p0 is a pair r0:r1

Could anyone tell me what am I doing wrong?
Thanks in advance
Artur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100222/dd26349f/attachment.html>


More information about the llvm-dev mailing list