Mercurial > hg > CbC > CbC_gcc
diff gcc/config/ft32/predicates.md @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/config/ft32/predicates.md Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/config/ft32/predicates.md Thu Oct 25 07:37:49 2018 +0900 @@ -1,5 +1,5 @@ ;; Predicate definitions for FT32 -;; Copyright (C) 2015-2017 Free Software Foundation, Inc. +;; Copyright (C) 2015-2018 Free Software Foundation, Inc. ;; Contributed by FTDI <support@ftdi.com> ;; This file is part of GCC. @@ -23,6 +23,11 @@ ;; ------------------------------------------------------------------------- ;; Nonzero if OP can be source of a simple move operation. +;; +;; The CONST_INT could really be CONST if we were to fix +;; ft32_print_operand_address to format the address correctly. +;; It might require assembler/linker work as well to ensure +;; the right relocation is emitted. (define_predicate "ft32_general_movsrc_operand" (match_code "mem,const_int,reg,subreg,symbol_ref,label_ref,const") @@ -34,7 +39,7 @@ 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) return 1; return general_operand (op, mode);