diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-01-24 22:05:25 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-01-24 22:05:25 +0000 |
commit | e6e4b3a002cc72c017505883227a392bb94230bb (patch) | |
tree | b6a4fc9abf16bf75198475010ab28febd6f28d93 /lib/Target/Mips/MipsInstrFPU.td | |
parent | c389af94b66d0c5a917f81617bd07ff0864790a0 (diff) | |
download | external_llvm-e6e4b3a002cc72c017505883227a392bb94230bb.zip external_llvm-e6e4b3a002cc72c017505883227a392bb94230bb.tar.gz external_llvm-e6e4b3a002cc72c017505883227a392bb94230bb.tar.bz2 |
Pattern for f32 to i64 conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148869 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrFPU.td')
-rw-r--r-- | lib/Target/Mips/MipsInstrFPU.td | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsInstrFPU.td b/lib/Target/Mips/MipsInstrFPU.td index 7638f54..28cde91 100644 --- a/lib/Target/Mips/MipsInstrFPU.td +++ b/lib/Target/Mips/MipsInstrFPU.td @@ -337,6 +337,7 @@ let Predicates = [IsFP64bit] in { (CVT_D64_L (DMTC1 CPU64Regs:$src))>; def : Pat<(i32 (fp_to_sint FGR64:$src)), (MFC1 (TRUNC_W_D64 FGR64:$src))>; + def : Pat<(i64 (fp_to_sint FGR32:$src)), (DMFC1 (TRUNC_L_S FGR32:$src))>; def : Pat<(i64 (fp_to_sint FGR64:$src)), (DMFC1 (TRUNC_L_D64 FGR64:$src))>; def : Pat<(f32 (fround FGR64:$src)), (CVT_S_D64 FGR64:$src)>; |