From 9422357988a125bc1676020ab869a1c50ca6ff7a Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Thu, 15 Mar 2018 18:33:34 -0400 Subject: [PATCH] nios2.md (movsi_internal): Fix thinko in split predicate. 2018-03-15 Sandra Loosemore gcc/ * config/nios2/nios2.md (movsi_internal): Fix thinko in split predicate. From-SVN: r258575 --- gcc/ChangeLog | 5 +++++ gcc/config/nios2/nios2.md | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2fe4a21a2fe..060d7e5b96a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-03-15 Sandra Loosemore + + * config/nios2/nios2.md (movsi_internal): Fix thinko in + split predicate. + 2018-03-15 Jakub Jelinek PR c++/79085 diff --git a/gcc/config/nios2/nios2.md b/gcc/config/nios2/nios2.md index e9f5c92c556..a6ddd48e0bf 100644 --- a/gcc/config/nios2/nios2.md +++ b/gcc/config/nios2/nios2.md @@ -298,9 +298,10 @@ } "(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])) -- 2.30.2