[LLVMdev] Paired register allocation problem
pietreka at gmail.com
Mon Feb 22 05:30:46 PST 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev