nios2.md (movsi_internal): Fix thinko in split predicate.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 15 Mar 2018 22:33:34 +0000 (18:33 -0400)
committerSandra Loosemore <sandra@gcc.gnu.org>
Thu, 15 Mar 2018 22:33:34 +0000 (18:33 -0400)
2018-03-15  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/nios2/nios2.md (movsi_internal): Fix thinko in
split predicate.

From-SVN: r258575

gcc/ChangeLog
gcc/config/nios2/nios2.md

index 2fe4a21a2fefc9d654c19f2617363757528e5cba..060d7e5b96abf60af2d13a1b0344b217eb1b8544 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-15  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * config/nios2/nios2.md (movsi_internal): Fix thinko in 
+       split predicate.
+
 2018-03-15  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/79085
index e9f5c92c556c0860270701fd7c59a538f5e5fbb7..a6ddd48e0bfb8c908748ad9a83e6fd509663fa34 100644 (file)
   }
   "(nios2_large_constant_memory_operand_p (operands[0]) 
     || nios2_large_constant_memory_operand_p (operands[1])
-    || (nios2_large_constant_p (operands[1]) 
-        && !SMALL_INT_UNSIGNED (INTVAL (operands[1]))
-       && !UPPER16_INT (INTVAL (operands[1]))))"
+    || (nios2_large_constant_p (operands[1])
+        && !(CONST_INT_P (operands[1])
+            && (SMALL_INT_UNSIGNED (INTVAL (operands[1]))
+                || UPPER16_INT (INTVAL (operands[1]))))))"
   [(set (match_dup 0) (match_dup 1))]
   {
     if (nios2_large_constant_memory_operand_p (operands[0]))