diff options
| author | Petar Avramovic <Petar.Avramovic@rt-rk.com> | 2019-06-06 09:22:37 +0000 |
|---|---|---|
| committer | Petar Avramovic <Petar.Avramovic@rt-rk.com> | 2019-06-06 09:22:37 +0000 |
| commit | 0a1fd355b2f6fb971fbf4108be623b01c65e57c4 (patch) | |
| tree | 06434421cd492b746f9f29f600c9824f4d1a608f /llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp | |
| parent | a7d000644745471a9a7b403f1fdedb773c2b4af0 (diff) | |
| download | bcm5719-llvm-0a1fd355b2f6fb971fbf4108be623b01c65e57c4.tar.gz bcm5719-llvm-0a1fd355b2f6fb971fbf4108be623b01c65e57c4.zip | |
[MIPS GlobalISel] Select fabs
Select G_FABS for MIPS32.
Differential Revision: https://reviews.llvm.org/D62903
llvm-svn: 362690
Diffstat (limited to 'llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp b/llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp index 6a4ffe16a35..3ac81f74c62 100644 --- a/llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp +++ b/llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp @@ -133,7 +133,8 @@ MipsRegisterBankInfo::getInstrMapping(const MachineInstr &MI) const { case G_FADD: case G_FSUB: case G_FMUL: - case G_FDIV: { + case G_FDIV: + case G_FABS: { unsigned Size = MRI.getType(MI.getOperand(0).getReg()).getSizeInBits(); assert((Size == 32 || Size == 64) && "Unsupported floating point size"); OperandsMapping = Size == 32 ? &Mips::ValueMappings[Mips::SPRIdx] |

