aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsInstrFPU.td
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2008-07-07 19:11:24 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2008-07-07 19:11:24 +0000
commit85e9212fcdd63d8b796d09c87f99eae5153a6c8a (patch)
treec7026ddadae8577fd6bc314b6d69cdfb3578b49e /lib/Target/Mips/MipsInstrFPU.td
parent9ff0f0ea39ea71d33887584d10c88dda2038285b (diff)
downloadexternal_llvm-85e9212fcdd63d8b796d09c87f99eae5153a6c8a.zip
external_llvm-85e9212fcdd63d8b796d09c87f99eae5153a6c8a.tar.gz
external_llvm-85e9212fcdd63d8b796d09c87f99eae5153a6c8a.tar.bz2
fixed 32-bit fp_to_sint pattern
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrFPU.td')
-rw-r--r--lib/Target/Mips/MipsInstrFPU.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsInstrFPU.td b/lib/Target/Mips/MipsInstrFPU.td
index a185a35..f3366e3 100644
--- a/lib/Target/Mips/MipsInstrFPU.td
+++ b/lib/Target/Mips/MipsInstrFPU.td
@@ -291,6 +291,6 @@ let hasDelaySlot = 1, Defs=[FCR31] in {
//===----------------------------------------------------------------------===//
def : Pat<(f32 (sint_to_fp CPURegs:$src)), (CVTS_W32 (MTC1 CPURegs:$src))>;
def : Pat<(f64 (sint_to_fp CPURegs:$src)), (CVTD_W32 (MTC1 CPURegs:$src))>;
-def : Pat<(i32 (fp_to_sint FGR32:$src)), (MFC1 (CVTW_SO32 FGR32:$src))>;
-def : Pat<(i32 (fp_to_sint AFGR32:$src)), (MFC1 (CVTW_AS32 AFGR32:$src))>;
+def : Pat<(i32 (fp_to_sint FGR32:$src)), (MFC1 (TRUNC_W_SO32 FGR32:$src))>;
+def : Pat<(i32 (fp_to_sint AFGR32:$src)), (MFC1 (TRUNC_W_AS32 AFGR32:$src))>;