Fix instruction predicates that were not set correctly.
authorAkira Hatanaka <ahatanaka@mips.com>
Mon, 27 Feb 2012 19:09:08 +0000 (19:09 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Mon, 27 Feb 2012 19:09:08 +0000 (19:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151538 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsInstrFPU.td

index f7af99dd408bb209b7471cdffe8c3ce5de995285..b7ad88380358b79569b50bcc942aad624a31631b 100644 (file)
@@ -230,14 +230,16 @@ let Predicates = [IsN64] in {
 let Predicates = [NotN64] in {
   def LWC1   : FPLoad<0x31, "lwc1", load, FGR32, mem>;
   def SWC1   : FPStore<0x39, "swc1", store, FGR32, mem>;
-  let Predicates = [HasMips64] in {
-    def LDC164 : FPLoad<0x35, "ldc1", load, FGR64, mem>;
-    def SDC164 : FPStore<0x3d, "sdc1", store, FGR64, mem>;
-  }
-  let Predicates = [NotMips64] in {
-    def LDC1   : FPLoad<0x35, "ldc1", load, AFGR64, mem>;
-    def SDC1   : FPStore<0x3d, "sdc1", store, AFGR64, mem>;
-  }
+}
+
+let Predicates = [NotN64, HasMips64] in {
+  def LDC164 : FPLoad<0x35, "ldc1", load, FGR64, mem>;
+  def SDC164 : FPStore<0x3d, "sdc1", store, FGR64, mem>;
+}
+
+let Predicates = [NotN64, NotMips64] in {
+  def LDC1   : FPLoad<0x35, "ldc1", load, AFGR64, mem>;
+  def SDC1   : FPStore<0x3d, "sdc1", store, AFGR64, mem>;
 }
 
 /// Floating-point Aritmetic