From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by sourceware.org (Postfix) with ESMTPS id 0F5723858C54 for ; Tue, 27 Dec 2022 18:24:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0F5723858C54 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-il1-x12a.google.com with SMTP id g2so3908879ila.4 for ; Tue, 27 Dec 2022 10:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=EKPx/a38+HfGqmMyLaWUNeI7unG4FhjjdBbz1mlFl70=; b=T1HRRYGZcQrHSkoxn8V4s2j6HDaC0QGWZ9ViC+PelD3mVPBKNNKE+fAp55bXgA2IkE gzRcp4dEC4IaThCq9ne8aG+YrPOC+7tRXWfj043tJRWyVCa5vrwDoIQ29httO+NQPR2d D6/wVpA6J8AmNEuGjuOLviVn3M5QwLsNiqVfFDH9X+WVvl6Tm6iqejioiadCeg/RO7p4 e1M+0DBdBsTz8bJpf111eCPb1Nn0SGT7Y20FvOIiYSgOZWIq65r27B8/nErvx+4LwEG9 tRf2XWsT+C1sVB6+cnRiXRzuaskONq8uVZUrM8MhasgORwKTOt5Ew2tk79mY2j0rfdNe gElg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EKPx/a38+HfGqmMyLaWUNeI7unG4FhjjdBbz1mlFl70=; b=0gd8laaBLPQRdtG/uwV9gnWBI1DcFLv9zjJw943h7LIMFMvos9c/z53f/Il75Nn3WY 6mEULmXvT4zkIQItkDpiqpuTCFFbBYHdZM0gAwIvXNNqESW9uCJGvBE9n6pLEYWGkkvE zBKPImt/E/B6/m9mP4mMdEG/LrDrTB8ZF7fB1I4SMIumeiLYXQ0BFg52uGsf9VAu7ZK2 IhMEcMTm1wozvc0CDCxTRnydU66ASNnJ+hdLji3hZDo/t5TZ6qJ4Hsi4+LR8vuHsME9Z 3kIkFF77l0ZSUFApWZPm+0xzoW8qh4f5WDBFaMj5XkE76MgLKMyVGijWd7FDoHlmw8XC 8P9w== X-Gm-Message-State: AFqh2kqgb5OzTsfIPa9sXERsbfMcurej5pgoBrpij2sYBtV59DMxAfKW W34nvJQRbHQ8pHAKZDt+PWSsHKozXcg= X-Google-Smtp-Source: AMrXdXs/lyJrFY4BXHJUCYpsxcTNC9c5/U6/QU/Gs0hvF8PNVBWy0EJ/PSCGgHn1Qpigmrro6f9YAQ== X-Received: by 2002:a05:6e02:6d2:b0:303:5d8e:5bcf with SMTP id p18-20020a056e0206d200b003035d8e5bcfmr14848211ils.29.1672165452138; Tue, 27 Dec 2022 10:24:12 -0800 (PST) Received: from [172.31.1.18] (65-130-81-249.slkc.qwest.net. [65.130.81.249]) by smtp.gmail.com with ESMTPSA id m36-20020a026d24000000b00389c2fe0f9dsm4467348jac.85.2022.12.27.10.24.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Dec 2022 10:24:11 -0800 (PST) Message-ID: <3c96be88-9289-641c-0fe2-91b45392bfb2@gmail.com> Date: Tue, 27 Dec 2022 11:24:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [RFC]RISC-V: Support RV64-ILP32 Content-Language: en-US To: shihua@iscas.ac.cn, gcc-patches@gcc.gnu.org Cc: lazyparser@gmail.com, jiawei@iscas.ac.cn, kito.cheng@gmail.com References: <20221213064927.1416-1-shihua@iscas.ac.cn> From: Jeff Law In-Reply-To: <20221213064927.1416-1-shihua@iscas.ac.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_NUMSUBJECT,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 12/12/22 23:49, shihua@iscas.ac.cn wrote: > From: Liao Shihua > > This patch support rv64 insn in ilp32 ABI. It was inspired by aarch64 both > support 64-bit and 32-bit ABI with the same set of instructions. > > > gcc/ChangeLog: > > * config.gcc: Implememt ilp32* with rv64*. > * config/riscv/riscv.cc (riscv_option_override): Remove the constraint between RV64 and ILP32. > * config/riscv/riscv.h (TARGET_ILP32): Define TARGET_ILP32 with riscv_abi. > (POINTER_SIZE):POINTER_SIZE will change with TARGET_ILP32. > (Pmode):Likewise. > * config/riscv/riscv.md: Convert split mode with Pmode and change mode form Xmode to Pmode in stack_tie. This is a new feature and thus I think we should defer to gcc-14 unless there is a compelling need. jeff