aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/nios2/predicates.md
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/nios2/predicates.md')
-rw-r--r--gcc/config/nios2/predicates.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/nios2/predicates.md b/gcc/config/nios2/predicates.md
index e35a37e..d605299 100644
--- a/gcc/config/nios2/predicates.md
+++ b/gcc/config/nios2/predicates.md
@@ -146,6 +146,8 @@
return (REG_P (XEXP (addr, 0))
&& CONST_INT_P (XEXP (addr, 1))
&& SMALL_INT12 (INTVAL (XEXP (addr, 1))));
+ else if (CONST_INT_P (addr))
+ return SMALL_INT12 (INTVAL (addr));
return false;
}
return memory_operand (op, mode);