Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/fr30/predicates.md @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | a06113de4d67 |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 ;; Predicate definitions for FR30. | 1 ;; Predicate definitions for FR30. |
2 ;; Copyright (C) 2005, 2007 Free Software Foundation, Inc. | 2 ;; Copyright (C) 2005-2017 Free Software Foundation, Inc. |
3 ;; | 3 ;; |
4 ;; This file is part of GCC. | 4 ;; This file is part of GCC. |
5 ;; | 5 ;; |
6 ;; GCC is free software; you can redistribute it and/or modify | 6 ;; GCC is free software; you can redistribute it and/or modify |
7 ;; it under the terms of the GNU General Public License as published by | 7 ;; it under the terms of the GNU General Public License as published by |
62 }) | 62 }) |
63 | 63 |
64 ;; Returns TRUE if OP is a valid operand of a DImode operation. | 64 ;; Returns TRUE if OP is a valid operand of a DImode operation. |
65 | 65 |
66 (define_predicate "di_operand" | 66 (define_predicate "di_operand" |
67 (match_code "const_int,const_double,reg,mem") | 67 (match_code "const_int,const_double,reg,subreg,mem") |
68 { | 68 { |
69 if (register_operand (op, mode)) | 69 if (register_operand (op, mode)) |
70 return TRUE; | 70 return TRUE; |
71 | 71 |
72 if (mode != VOIDmode && GET_MODE (op) != VOIDmode && GET_MODE (op) != DImode) | 72 if (mode != VOIDmode && GET_MODE (op) != VOIDmode && GET_MODE (op) != DImode) |
90 }) | 90 }) |
91 | 91 |
92 ;; Returns TRUE if OP is a DImode register or MEM. | 92 ;; Returns TRUE if OP is a DImode register or MEM. |
93 | 93 |
94 (define_predicate "nonimmediate_di_operand" | 94 (define_predicate "nonimmediate_di_operand" |
95 (match_code "reg,mem") | 95 (match_code "reg,subreg,mem") |
96 { | 96 { |
97 if (register_operand (op, mode)) | 97 if (register_operand (op, mode)) |
98 return TRUE; | 98 return TRUE; |
99 | 99 |
100 if (mode != VOIDmode && GET_MODE (op) != VOIDmode && GET_MODE (op) != DImode) | 100 if (mode != VOIDmode && GET_MODE (op) != VOIDmode && GET_MODE (op) != DImode) |