From: Eric Christopher Date: Tue, 28 Sep 2010 00:35:09 +0000 (+0000) Subject: Fix fp constant loads to have a destination register. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f5732c4ee5af93bddeb8f4612441bfdf19237ea3;p=oota-llvm.git Fix fp constant loads to have a destination register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114930 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index e84989c10bb..eb27fad5c35 100644 --- a/lib/Target/ARM/ARMFastISel.cpp +++ b/lib/Target/ARM/ARMFastISel.cpp @@ -397,8 +397,9 @@ unsigned ARMFastISel::ARMMaterializeFP(const ConstantFP *CFP, EVT VT) { unsigned Opc = is64bit ? ARM::VLDRD : ARM::VLDRS; // The extra reg is for addrmode5. - AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(Opc)) - .addReg(DestReg).addConstantPoolIndex(Idx) + AddOptionalDefs(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(Opc), + DestReg) + .addConstantPoolIndex(Idx) .addReg(0)); return DestReg; }