Mercurial > hg > CbC > CbC_gcc
diff gcc/config/moxie/predicates.md @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 77e2b8dfacca |
children | 84e7813d76e9 |
line wrap: on
line diff
--- a/gcc/config/moxie/predicates.md Sun Aug 21 07:07:55 2011 +0900 +++ b/gcc/config/moxie/predicates.md Fri Oct 27 22:46:09 2017 +0900 @@ -1,5 +1,5 @@ ;; Predicate definitions for Moxie -;; Copyright (C) 2009 Free Software Foundation, Inc. +;; Copyright (C) 2009-2017 Free Software Foundation, Inc. ;; Contributed by Anthony Green <green@moxielogic.com> ;; This file is part of GCC. @@ -34,7 +34,8 @@ if (MEM_P (op) && GET_CODE (XEXP (op, 0)) == PLUS && GET_CODE (XEXP (XEXP (op, 0), 0)) == REG - && GET_CODE (XEXP (XEXP (op, 0), 1)) == CONST) + && GET_CODE (XEXP (XEXP (op, 0), 1)) == CONST_INT + && IN_RANGE (INTVAL (XEXP (XEXP (op, 0), 1)), -32768, 32767)) return 1; return general_operand (op, mode);