diff options
| author | Eric Christopher <echristo@apple.com> | 2010-09-28 00:35:09 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-09-28 00:35:09 +0000 |
| commit | 7194838a9d1f7770c9bf905ea1fa3eef49adcf99 (patch) | |
| tree | aa06a5cbf45b918c2b520562c30ea98e66f44094 /lib/Target/ARM/ARMFastISel.cpp | |
| parent | ba6c6eb572dcc63b1aac4b487057f2f2e492deec (diff) | |
| download | external_llvm-7194838a9d1f7770c9bf905ea1fa3eef49adcf99.zip external_llvm-7194838a9d1f7770c9bf905ea1fa3eef49adcf99.tar.gz external_llvm-7194838a9d1f7770c9bf905ea1fa3eef49adcf99.tar.bz2 | |
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
Diffstat (limited to 'lib/Target/ARM/ARMFastISel.cpp')
| -rw-r--r-- | lib/Target/ARM/ARMFastISel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index e84989c..eb27fad 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; } |
