comparison gcc/config/alpha/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 DEC Alpha. 1 ;; Predicate definitions for DEC Alpha.
2 ;; Copyright (C) 2004-2017 Free Software Foundation, Inc. 2 ;; Copyright (C) 2004-2018 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
71 71
72 ;; Return 1 if the operand is a non-symbolic, nonzero constant operand. 72 ;; Return 1 if the operand is a non-symbolic, nonzero constant operand.
73 (define_predicate "non_zero_const_operand" 73 (define_predicate "non_zero_const_operand"
74 (and (match_code "const_int,const_wide_int,const_double,const_vector") 74 (and (match_code "const_int,const_wide_int,const_double,const_vector")
75 (not (match_test "op == CONST0_RTX (mode)")))) 75 (not (match_test "op == CONST0_RTX (mode)"))))
76
77 ;; Return 1 if OP is the constant 1, 2 or 3.
78 (define_predicate "const123_operand"
79 (and (match_code "const_int")
80 (match_test "IN_RANGE (INTVAL (op), 1, 3)")))
81
82 ;; Return 1 if OP is the constant 2 or 3.
83 (define_predicate "const23_operand"
84 (and (match_code "const_int")
85 (match_test "INTVAL (op) == 2 || INTVAL (op) == 3")))
76 86
77 ;; Return 1 if OP is the constant 4 or 8. 87 ;; Return 1 if OP is the constant 4 or 8.
78 (define_predicate "const48_operand" 88 (define_predicate "const48_operand"
79 (and (match_code "const_int") 89 (and (match_code "const_int")
80 (match_test "INTVAL (op) == 4 || INTVAL (op) == 8"))) 90 (match_test "INTVAL (op) == 4 || INTVAL (op) == 8")))