Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/moxie/constraints.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 ;; Constraint definitions for Moxie | 1 ;; Constraint 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 |
30 (match_test "GET_CODE (XEXP (op, 0)) == CONST")))) | 30 (match_test "GET_CODE (XEXP (op, 0)) == CONST")))) |
31 | 31 |
32 (define_constraint "B" | 32 (define_constraint "B" |
33 "An offset address." | 33 "An offset address." |
34 (and (match_code "mem") | 34 (and (match_code "mem") |
35 (match_test "GET_CODE (XEXP (op, 0)) == PLUS"))) | 35 (match_test "moxie_offset_address_p (op)"))) |
36 | 36 |
37 (define_constraint "W" | 37 (define_constraint "W" |
38 "A register indirect memory operand." | 38 "A register indirect memory operand." |
39 (and (match_code "mem") | 39 (and (match_code "mem") |
40 (match_test "REG_P (XEXP (op, 0)) | 40 (match_test "REG_P (XEXP (op, 0)) |