comparison gcc/config/vax/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 DEC VAX. 1 ;; Predicate definitions for DEC VAX.
2 ;; Copyright (C) 2007, 2009 Free Software Foundation, Inc. 2 ;; Copyright (C) 2007-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 it under 6 ;; GCC is free software; you can redistribute it and/or modify it under
7 ;; the terms of the GNU General Public License as published by the Free 7 ;; the terms of the GNU General Public License as published by the Free
77 }) 77 })
78 78
79 (define_predicate "indexed_memory_operand" 79 (define_predicate "indexed_memory_operand"
80 (match_code "mem") 80 (match_code "mem")
81 { 81 {
82 op = XEXP (op, 0); 82 rtx addr = XEXP (op, 0);
83 return GET_CODE (op) != PRE_DEC && GET_CODE (op) != POST_INC 83 return GET_CODE (addr) != PRE_DEC && GET_CODE (addr) != POST_INC
84 && mode_dependent_address_p (op); 84 && mode_dependent_address_p (addr, MEM_ADDR_SPACE (op));
85 }) 85 })
86 86
87 (define_predicate "illegal_blk_memory_operand" 87 (define_predicate "illegal_blk_memory_operand"
88 (and (match_code "mem") 88 (and (match_code "mem")
89 (ior (and (match_test "flag_pic") 89 (ior (and (match_test "flag_pic")