[PATCH] D49469: [mips] Fix predicate for the MipsTruncIntFP pattern

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 18 07:16:35 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL337392: [mips] Fix predicate for the MipsTruncIntFP pattern (authored by atanasyan, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D49469?vs=156028&id=156067#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D49469

Files:
  llvm/trunk/lib/Target/Mips/MipsInstrFPU.td
  llvm/trunk/test/CodeGen/Mips/double2int.ll


Index: llvm/trunk/test/CodeGen/Mips/double2int.ll
===================================================================
--- llvm/trunk/test/CodeGen/Mips/double2int.ll
+++ llvm/trunk/test/CodeGen/Mips/double2int.ll
@@ -1,4 +1,5 @@
-; RUN: llc -march=mips < %s | FileCheck %s
+; RUN: llc -march=mips -mcpu=mips32 < %s | FileCheck %s
+; RUN: llc -march=mips -mcpu=mips32r6 < %s | FileCheck %s
 
 define i32 @f1(double %d) nounwind readnone {
 entry:
Index: llvm/trunk/lib/Target/Mips/MipsInstrFPU.td
===================================================================
--- llvm/trunk/lib/Target/Mips/MipsInstrFPU.td
+++ llvm/trunk/lib/Target/Mips/MipsInstrFPU.td
@@ -894,7 +894,7 @@
               (PseudoCVT_D64_L GPR64Opnd:$src)>, FGR_64;
 
 def : MipsPat<(MipsTruncIntFP FGR64Opnd:$src),
-              (TRUNC_W_D64 FGR64Opnd:$src)>, ISA_MIPS3, FGR_64;
+              (TRUNC_W_D64 FGR64Opnd:$src)>, ISA_MIPS2, FGR_64;
 def : MipsPat<(MipsTruncIntFP FGR32Opnd:$src),
               (TRUNC_L_S FGR32Opnd:$src)>, ISA_MIPS2, FGR_64;
 def : MipsPat<(MipsTruncIntFP FGR64Opnd:$src),


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49469.156067.patch
Type: text/x-patch
Size: 1074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180718/89d9804c/attachment.bin>


More information about the llvm-commits mailing list