comparison gcc/config/nios2/predicates.md @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 ;; Predicate definitions for Altera Nios II. 1 ;; Predicate definitions for Altera Nios II.
2 ;; Copyright (C) 2012-2017 Free Software Foundation, Inc. 2 ;; Copyright (C) 2012-2018 Free Software Foundation, Inc.
3 ;; Contributed by Chung-Lin Tang <cltang@codesourcery.com> 3 ;; Contributed by Chung-Lin Tang <cltang@codesourcery.com>
4 ;; 4 ;;
5 ;; This file is part of GCC. 5 ;; This file is part of GCC.
6 ;; 6 ;;
7 ;; GCC is free software; you can redistribute it and/or modify 7 ;; GCC is free software; you can redistribute it and/or modify
144 return true; 144 return true;
145 else if (GET_CODE (addr) == PLUS) 145 else if (GET_CODE (addr) == PLUS)
146 return (REG_P (XEXP (addr, 0)) 146 return (REG_P (XEXP (addr, 0))
147 && CONST_INT_P (XEXP (addr, 1)) 147 && CONST_INT_P (XEXP (addr, 1))
148 && SMALL_INT12 (INTVAL (XEXP (addr, 1)))); 148 && SMALL_INT12 (INTVAL (XEXP (addr, 1))));
149 else if (CONST_INT_P (addr))
150 return SMALL_INT12 (INTVAL (addr));
149 return false; 151 return false;
150 } 152 }
151 return memory_operand (op, mode); 153 return memory_operand (op, mode);
152 }) 154 })
153 155