[LLVMdev] Custom Lowering and fneg

Villmow, Micah Micah.Villmow at amd.com
Wed Sep 17 12:57:13 PDT 2008

 Thanks for the help, I was able to fix my issue. When I was creating a
getCopyToReg I was assigning it as an i32. 

-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of Eli Friedman
Sent: Tuesday, September 16, 2008 5:22 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] Custom Lowering and fneg

On Tue, Sep 16, 2008 at 3:43 PM, Villmow, Micah <Micah.Villmow at amd.com>
> Eli,
>  I've been working on this for a few days and still haven't gotten
> towork. I've attached my dags that you asked for, and even there it is
> turning the floating point instruction into an integer return value.

Hmm, that's kind of strange... in that case, there's very little space
for it to get messed up.  Could you try setting a breakpoint in
"llvm::SelectionDAG::getNode(unsigned Opcode, MVT VT, SDValue
Operand)" and seeing where the fneg in question is built?

LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu

More information about the llvm-dev mailing list