From patchwork Fri Jul 2 14:47:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 1500164 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=VzrzI3ZM; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GGdHQ6g7Gz9sS8 for ; Sat, 3 Jul 2021 00:48:18 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 814353847818 for ; Fri, 2 Jul 2021 14:48:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 814353847818 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1625237296; bh=ff92iJ2kJWpzPEcaXE60n9YHfpuKTEUZhuTHnWVSMsE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=VzrzI3ZMtCh+BmLq3Cxa+5d+8APfDaFmJoWJcEzNuirCNgYrR6wEl/lx7XEU7l19b jNMJ8r019/1GGq3VhOXvumwODjvGeb1+xerto34P9IVchHTNCfd+J8uf14+azl2qT0 oBQhpEQn6cGyicfIPuAlHmjvtvVkl3AENnUSu3sc= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by sourceware.org (Postfix) with ESMTPS id 9E20F3854816 for ; Fri, 2 Jul 2021 14:47:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9E20F3854816 Received: by mail-pj1-x1032.google.com with SMTP id n11so6489729pjo.1 for ; Fri, 02 Jul 2021 07:47:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=ff92iJ2kJWpzPEcaXE60n9YHfpuKTEUZhuTHnWVSMsE=; b=S+SAzTodnqBZozox+Tac2yqEzoJY7Dq2CEeEYVy6J3kiM/0m6by/Hce2Tlo/zJ2zFf WR5T4LXarEc2+UmGEnE6VzfYmO9ISJr4f3/YzoDlZC3WXcHTqBN4qf7S+rQcH6EvJ04B kiGhehKHH5SITiN2jcD5l2ThWNU4JX2V8VcOAxOmWUJOP6hXg61pse239NamCsPHVBa2 7th9kivCtDmVNVYpu1HksTdCbBKG77EWkksE3lDE6AiHqFXia9ZeSghaIet96NvEIIdV pc1e9Pdhb10Wh7H+pqlDKQYONx0wMCa+SiFG1O84GJurygcXeBMKoF9NssFKahjIPXQn X4Aw== X-Gm-Message-State: AOAM532ATxsGSzPqktd7gh/GIMz9xb0Q3+z8VxwWHIZU8/f+kJi7DQzm bR1RhMhK2U0GQreRLdcDWmCrsNt5fQt5pQ== X-Google-Smtp-Source: ABdhPJxw3ipkJ4pAQ1P0McFIwvwXmsiI1wCdzmvwrrU/9j+oFkfk3iq6MPIRDX8Og5pq1+SXCWGAKg== X-Received: by 2002:a17:902:934a:b029:128:f8c2:bf9b with SMTP id g10-20020a170902934ab0290128f8c2bf9bmr172720plp.8.1625237251423; Fri, 02 Jul 2021 07:47:31 -0700 (PDT) Received: from [192.168.1.35] (c-98-202-48-222.hsd1.ut.comcast.net. [98.202.48.222]) by smtp.gmail.com with ESMTPSA id r92sm13647063pja.6.2021.07.02.07.47.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Jul 2021 07:47:30 -0700 (PDT) To: GCC Patches Subject: [committed] Fix frv target specific fallout from recent int->bool changes Message-ID: Date: Fri, 2 Jul 2021 08:47:27 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Language: en-US X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jeff Law via Gcc-patches From: Jeff Law Reply-To: Jeff Law Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" More light fallout from Uros's work. Committed to the trunk. Jeff commit ef9cc434a476954b5ef3493955d4e668338990c2 Author: Jeff Law Date: Fri Jul 2 10:37:52 2021 -0400 Fix frv target specific fallout from recent int->bool changes gcc/ChangeLog * config/frv/frv-protos.h (integer_register_operand): Adjust return type. (frv_load_operand, gpr_or_fpr_operand, gpr_no_subreg_operand): Likewise. (fpr_or_int6_operand, gpr_or_int_operand); Likewise. (gpr_or_int12_operand, gpr_or_int10_operand); Likewise. (move_source_operand, move_destination_operand): Likewise. (condexec_source_operand, condexec_dest_operand): Likewise. (lr_operand, gpr_or_memory_operand, fpr_or_memory_operand): Likewise. (reg_or_0_operand, fcc_operand, icc_operand, cc_operand): Likewise. (fcr_operand, icr_operand, cr_operand, call_operand): Likewise. (fpr_operand, even_reg_operand, odd_reg_operand): Likewise. (even_gpr_operand, odd_gpr_operand, quad_fpr_operand): Likewise. (even_fpr_operand, odd_fpr_operand): Likewise. (dbl_memory_one_insn_operand, dbl_memory_two_insn_operand): Likewise. (int12_operand, int6_operand, int5_operand, uint5_operand): Likewise. (uint4_operand, uint1_operand, int_2word_operand): Likewise (upper_int16_operand, uint16_operand, symbolic_operand): Likewise. (relational_operator, float_relational_operator): Likewise. (ccr_eqne_operator, minmax_operator): Likewise. (condexec_si_binary_operator, condexec_si_media_operator): Likewise. (condexec_si_divide_operator, condexec_si_unary_operator): Likewise. (condexec_sf_conv_operator, condexec_sf_add_operator): Likewise. (intop_compare_operator, acc_operand, even_acc_operand): Likewise. (quad_acc_operand, accg_operand): Likewise. diff --git a/gcc/config/frv/frv-protos.h b/gcc/config/frv/frv-protos.h index 8d79d73f6e0..29d4425c8bb 100644 --- a/gcc/config/frv/frv-protos.h +++ b/gcc/config/frv/frv-protos.h @@ -89,73 +89,73 @@ extern int frv_adjust_field_align (tree, int); #endif #ifdef RTX_CODE -extern int integer_register_operand (rtx, machine_mode); -extern int frv_load_operand (rtx, machine_mode); -extern int gpr_or_fpr_operand (rtx, machine_mode); -extern int gpr_no_subreg_operand (rtx, machine_mode); +extern bool integer_register_operand (rtx, machine_mode); +extern bool frv_load_operand (rtx, machine_mode); +extern bool gpr_or_fpr_operand (rtx, machine_mode); +extern bool gpr_no_subreg_operand (rtx, machine_mode); extern int gpr_or_int6_operand (rtx, machine_mode); -extern int fpr_or_int6_operand (rtx, machine_mode); -extern int gpr_or_int_operand (rtx, machine_mode); -extern int gpr_or_int12_operand (rtx, machine_mode); -extern int gpr_fpr_or_int12_operand (rtx, machine_mode); -extern int gpr_or_int10_operand (rtx, machine_mode); -extern int move_source_operand (rtx, machine_mode); -extern int move_destination_operand (rtx, machine_mode); -extern int condexec_source_operand (rtx, machine_mode); -extern int condexec_dest_operand (rtx, machine_mode); -extern int lr_operand (rtx, machine_mode); -extern int gpr_or_memory_operand (rtx, machine_mode); -extern int fpr_or_memory_operand (rtx, machine_mode); -extern int reg_or_0_operand (rtx, machine_mode); -extern int fcc_operand (rtx, machine_mode); -extern int icc_operand (rtx, machine_mode); -extern int cc_operand (rtx, machine_mode); -extern int fcr_operand (rtx, machine_mode); -extern int icr_operand (rtx, machine_mode); -extern int cr_operand (rtx, machine_mode); -extern int call_operand (rtx, machine_mode); -extern int fpr_operand (rtx, machine_mode); -extern int even_reg_operand (rtx, machine_mode); -extern int odd_reg_operand (rtx, machine_mode); -extern int even_gpr_operand (rtx, machine_mode); -extern int odd_gpr_operand (rtx, machine_mode); -extern int quad_fpr_operand (rtx, machine_mode); -extern int even_fpr_operand (rtx, machine_mode); -extern int odd_fpr_operand (rtx, machine_mode); -extern int dbl_memory_one_insn_operand (rtx, machine_mode); -extern int dbl_memory_two_insn_operand (rtx, machine_mode); -extern int int12_operand (rtx, machine_mode); -extern int int6_operand (rtx, machine_mode); -extern int int5_operand (rtx, machine_mode); -extern int uint5_operand (rtx, machine_mode); -extern int uint4_operand (rtx, machine_mode); -extern int uint1_operand (rtx, machine_mode); -extern int int_2word_operand (rtx, machine_mode); +extern bool fpr_or_int6_operand (rtx, machine_mode); +extern bool gpr_or_int_operand (rtx, machine_mode); +extern bool gpr_or_int12_operand (rtx, machine_mode); +extern bool gpr_fpr_or_int12_operand (rtx, machine_mode); +extern bool gpr_or_int10_operand (rtx, machine_mode); +extern bool move_source_operand (rtx, machine_mode); +extern bool move_destination_operand (rtx, machine_mode); +extern bool condexec_source_operand (rtx, machine_mode); +extern bool condexec_dest_operand (rtx, machine_mode); +extern bool lr_operand (rtx, machine_mode); +extern bool gpr_or_memory_operand (rtx, machine_mode); +extern bool fpr_or_memory_operand (rtx, machine_mode); +extern bool reg_or_0_operand (rtx, machine_mode); +extern bool fcc_operand (rtx, machine_mode); +extern bool icc_operand (rtx, machine_mode); +extern bool cc_operand (rtx, machine_mode); +extern bool fcr_operand (rtx, machine_mode); +extern bool icr_operand (rtx, machine_mode); +extern bool cr_operand (rtx, machine_mode); +extern bool call_operand (rtx, machine_mode); +extern bool fpr_operand (rtx, machine_mode); +extern bool even_reg_operand (rtx, machine_mode); +extern bool odd_reg_operand (rtx, machine_mode); +extern bool even_gpr_operand (rtx, machine_mode); +extern bool odd_gpr_operand (rtx, machine_mode); +extern bool quad_fpr_operand (rtx, machine_mode); +extern bool even_fpr_operand (rtx, machine_mode); +extern bool odd_fpr_operand (rtx, machine_mode); +extern bool dbl_memory_one_insn_operand (rtx, machine_mode); +extern bool dbl_memory_two_insn_operand (rtx, machine_mode); +extern bool int12_operand (rtx, machine_mode); +extern bool int6_operand (rtx, machine_mode); +extern bool int5_operand (rtx, machine_mode); +extern bool uint5_operand (rtx, machine_mode); +extern bool uint4_operand (rtx, machine_mode); +extern bool uint1_operand (rtx, machine_mode); +extern bool int_2word_operand (rtx, machine_mode); extern int pic_register_operand (rtx, machine_mode); extern int pic_symbolic_operand (rtx, machine_mode); extern int small_data_register_operand (rtx, machine_mode); extern int small_data_symbolic_operand (rtx, machine_mode); -extern int upper_int16_operand (rtx, machine_mode); -extern int uint16_operand (rtx, machine_mode); -extern int symbolic_operand (rtx, machine_mode); -extern int relational_operator (rtx, machine_mode); +extern bool upper_int16_operand (rtx, machine_mode); +extern bool uint16_operand (rtx, machine_mode); +extern bool symbolic_operand (rtx, machine_mode); +extern bool relational_operator (rtx, machine_mode); extern int signed_relational_operator (rtx, machine_mode); extern int unsigned_relational_operator (rtx, machine_mode); -extern int float_relational_operator (rtx, machine_mode); -extern int ccr_eqne_operator (rtx, machine_mode); -extern int minmax_operator (rtx, machine_mode); -extern int condexec_si_binary_operator (rtx, machine_mode); -extern int condexec_si_media_operator (rtx, machine_mode); -extern int condexec_si_divide_operator (rtx, machine_mode); -extern int condexec_si_unary_operator (rtx, machine_mode); -extern int condexec_sf_conv_operator (rtx, machine_mode); -extern int condexec_sf_add_operator (rtx, machine_mode); +extern bool float_relational_operator (rtx, machine_mode); +extern bool ccr_eqne_operator (rtx, machine_mode); +extern bool minmax_operator (rtx, machine_mode); +extern bool condexec_si_binary_operator (rtx, machine_mode); +extern bool condexec_si_media_operator (rtx, machine_mode); +extern bool condexec_si_divide_operator (rtx, machine_mode); +extern bool condexec_si_unary_operator (rtx, machine_mode); +extern bool condexec_sf_conv_operator (rtx, machine_mode); +extern bool condexec_sf_add_operator (rtx, machine_mode); extern int condexec_memory_operand (rtx, machine_mode); -extern int intop_compare_operator (rtx, machine_mode); -extern int acc_operand (rtx, machine_mode); -extern int even_acc_operand (rtx, machine_mode); -extern int quad_acc_operand (rtx, machine_mode); -extern int accg_operand (rtx, machine_mode); +extern bool intop_compare_operator (rtx, machine_mode); +extern bool acc_operand (rtx, machine_mode); +extern bool even_acc_operand (rtx, machine_mode); +extern bool quad_acc_operand (rtx, machine_mode); +extern bool accg_operand (rtx, machine_mode); extern rtx frv_matching_accg_for_acc (rtx); extern void frv_expand_fdpic_call (rtx *, bool, bool); extern rtx frv_gen_GPsym2reg (rtx, rtx);