[LLVMdev] returning a double in two registers

Chris Lattner sabre at nondot.org
Tue Oct 3 11:07:48 PDT 2006

On Tue, 3 Oct 2006, [UTF-8] Rafael Esp?ndola wrote:
>> You defined your armfmmrd node as taking three inputs: two integer and one
>> double.  Shouldn't it produce two outputs and take one input?  If so, you
>> need to write custom c++ matching code.  Alternatively, you can avoid this
>> by doing the two pieces separately, as you describe in 1).
> It should. I have cheated to be able to use tblgen. Since the
> instruction is only used with a flag connecting it to a return, I was
> hoping that the hack was "safe".

Probably not.  You're depending on the whims of the register allocator 
here.  :)  Try -regalloc=simple, it will probably break the code.



More information about the llvm-dev mailing list