diff options
Diffstat (limited to 'llvm/lib/Target/ARM')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMInstrVFP.td | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp | 4 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrVFP.td b/llvm/lib/Target/ARM/ARMInstrVFP.td index f44fe65a4fe..c2de4bb1aae 100644 --- a/llvm/lib/Target/ARM/ARMInstrVFP.td +++ b/llvm/lib/Target/ARM/ARMInstrVFP.td @@ -437,7 +437,7 @@ def FMSTAT : VFPAI<(outs), (ins), VFPMiscFrm, IIC_fpSTAT, "vmrs",  let isReMaterializable = 1 in {  def FCONSTD : VFPAI<(outs DPR:$dst), (ins vfp_f64imm:$imm),                      VFPMiscFrm, IIC_VMOVImm, -                    "fconstd", "\t$dst, $imm", +                    "vmov.f64", "\t$dst, $imm",                      [(set DPR:$dst, vfp_f64imm:$imm)]>, Requires<[HasVFP3]> {    let Inst{27-23} = 0b11101;    let Inst{21-20} = 0b11; @@ -448,7 +448,7 @@ def FCONSTD : VFPAI<(outs DPR:$dst), (ins vfp_f64imm:$imm),  def FCONSTS : VFPAI<(outs SPR:$dst), (ins vfp_f32imm:$imm),                      VFPMiscFrm, IIC_VMOVImm, -                    "fconsts", "\t$dst, $imm", +                    "vmov.f32", "\t$dst, $imm",                      [(set SPR:$dst, vfp_f32imm:$imm)]>, Requires<[HasVFP3]> {    let Inst{27-23} = 0b11101;    let Inst{21-20} = 0b11; diff --git a/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp index dd4a240f6c0..daffc5eb922 100644 --- a/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp +++ b/llvm/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp @@ -998,7 +998,7 @@ void ARMAsmPrinter::printNoHashImmediate(const MachineInstr *MI, int OpNum) {  void ARMAsmPrinter::printVFPf32ImmOperand(const MachineInstr *MI, int OpNum) {    const ConstantFP *FP = MI->getOperand(OpNum).getFPImm(); -  O << '#' << ARM::getVFPf32Imm(FP->getValueAPF()); +  O << '#' << FP->getValueAPF().convertToFloat();    if (VerboseAsm) {      O.PadToColumn(MAI->getCommentColumn());      O << MAI->getCommentString() << ' '; @@ -1008,7 +1008,7 @@ void ARMAsmPrinter::printVFPf32ImmOperand(const MachineInstr *MI, int OpNum) {  void ARMAsmPrinter::printVFPf64ImmOperand(const MachineInstr *MI, int OpNum) {    const ConstantFP *FP = MI->getOperand(OpNum).getFPImm(); -  O << '#' << ARM::getVFPf64Imm(FP->getValueAPF()); +  O << '#' << FP->getValueAPF().convertToDouble();    if (VerboseAsm) {      O.PadToColumn(MAI->getCommentColumn());      O << MAI->getCommentString() << ' ';  | 

