diff options
author | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2015-10-02 13:06:02 +0000 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@imgtec.com> | 2015-10-02 13:06:02 +0000 |
commit | 9ffdfa598628a6cc8f42a973f3db2094324b8b13 (patch) | |
tree | ba5d167075a82c939b4ca1c378174f99137166ec /llvm/lib | |
parent | 98efd89e7e52b2f081286477bbd8e7e400d63f37 (diff) | |
download | bcm5719-llvm-9ffdfa598628a6cc8f42a973f3db2094324b8b13.tar.gz bcm5719-llvm-9ffdfa598628a6cc8f42a973f3db2094324b8b13.zip |
[mips][microMIPS] Fix an issue with selecting sqrt instruction in LLVM backend
Differential Revision: http://reviews.llvm.org/D13235
llvm-svn: 249123
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/Mips/MipsInstrFPU.td | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrFPU.td b/llvm/lib/Target/Mips/MipsInstrFPU.td index 9b9d5f6cc2e..d1a72494433 100644 --- a/llvm/lib/Target/Mips/MipsInstrFPU.td +++ b/llvm/lib/Target/Mips/MipsInstrFPU.td @@ -353,11 +353,8 @@ def FNEG_S : MMRel, ABSS_FT<"neg.s", FGR32Opnd, FGR32Opnd, II_NEG, fneg>, defm FABS : ABSS_M<"abs.d", II_ABS, fabs>, ABSS_FM<0x5, 17>; defm FNEG : ABSS_M<"neg.d", II_NEG, fneg>, ABSS_FM<0x7, 17>; -let AdditionalPredicates = [NotInMicroMips] in { -def FSQRT_S : MMRel, ABSS_FT<"sqrt.s", FGR32Opnd, FGR32Opnd, II_SQRT_S, fsqrt>, - ABSS_FM<0x4, 16>, ISA_MIPS2; -} - +def FSQRT_S : MMRel, StdMMR6Rel, ABSS_FT<"sqrt.s", FGR32Opnd, FGR32Opnd, + II_SQRT_S, fsqrt>, ABSS_FM<0x4, 16>, ISA_MIPS2; defm FSQRT : ABSS_M<"sqrt.d", II_SQRT_D, fsqrt>, ABSS_FM<0x4, 17>, ISA_MIPS2; // The odd-numbered registers are only referenced when doing loads, |