Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/moxie/predicates.md @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | 77e2b8dfacca |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 ;; Predicate definitions for Moxie | 1 ;; Predicate definitions for Moxie |
2 ;; Copyright (C) 2009 Free Software Foundation, Inc. | 2 ;; Copyright (C) 2009-2017 Free Software Foundation, Inc. |
3 ;; Contributed by Anthony Green <green@moxielogic.com> | 3 ;; Contributed by Anthony Green <green@moxielogic.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 it | 7 ;; GCC is free software; you can redistribute it and/or modify it |
32 return 1; | 32 return 1; |
33 | 33 |
34 if (MEM_P (op) | 34 if (MEM_P (op) |
35 && GET_CODE (XEXP (op, 0)) == PLUS | 35 && GET_CODE (XEXP (op, 0)) == PLUS |
36 && GET_CODE (XEXP (XEXP (op, 0), 0)) == REG | 36 && GET_CODE (XEXP (XEXP (op, 0), 0)) == REG |
37 && GET_CODE (XEXP (XEXP (op, 0), 1)) == CONST) | 37 && GET_CODE (XEXP (XEXP (op, 0), 1)) == CONST_INT |
38 && IN_RANGE (INTVAL (XEXP (XEXP (op, 0), 1)), -32768, 32767)) | |
38 return 1; | 39 return 1; |
39 | 40 |
40 return general_operand (op, mode); | 41 return general_operand (op, mode); |
41 }) | 42 }) |
42 | 43 |