comparison gcc/config/v850/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 NEC V850. 1 ;; Predicate definitions for NEC V850.
2 ;; Copyright (C) 2005-2017 Free Software Foundation, Inc. 2 ;; Copyright (C) 2005-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
473 }) 473 })
474 474
475 ;; Return true if OP is a float value operand with value as 1. 475 ;; Return true if OP is a float value operand with value as 1.
476 476
477 (define_predicate "const_float_1_operand" 477 (define_predicate "const_float_1_operand"
478 (match_code "const_int") 478 (match_code "const_double")
479 { 479 {
480 if (GET_CODE (op) != CONST_DOUBLE 480 if (GET_CODE (op) != CONST_DOUBLE
481 || mode != GET_MODE (op) 481 || mode != GET_MODE (op)
482 || (mode != DFmode && mode != SFmode)) 482 || (mode != DFmode && mode != SFmode))
483 return 0; 483 return 0;
484 484
485 return op == CONST1_RTX(mode); 485 return op == CONST1_RTX(mode);
486 })
487
488 ;; Return true if OP is a float value operand with value as 0.
489
490 (define_predicate "const_float_0_operand"
491 (match_code "const_int")
492 {
493 if (GET_CODE (op) != CONST_DOUBLE
494 || mode != GET_MODE (op)
495 || (mode != DFmode && mode != SFmode))
496 return 0;
497
498 return op == CONST0_RTX(mode);
499 }) 486 })
500 487
501 (define_predicate "label_ref_operand" 488 (define_predicate "label_ref_operand"
502 (match_code "label_ref") 489 (match_code "label_ref")
503 ) 490 )