From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id EEADA385840E for ; Tue, 31 Oct 2023 17:03:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EEADA385840E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EEADA385840E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::330 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698771834; cv=none; b=p4cFkc4aa3ZjbdHhnLEIRo8i+a8pIXwWasIoIc5p4Nw1afZJhXgRDYunMg0Kn0BfhAEfy+WavvhSbeWDDgJb6U1CXlC10L8bITitJTomhzYTVaOgINhNSRG/6HFX6hrG8qAEAdqZSkRcDgv0fNlpVaiY5er6eSS3GVAOcITxPFA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698771834; c=relaxed/simple; bh=F2g5JQKcuZZKKR4tNz/8/JDpyB3+zqt7HKmeWS9xeLw=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=OVXxljXTRHcLI4z43xFvTmJpoz32IxxqoBlw0u1bapqSXCnFR5jjGt/9lHMaLqAK0Mpb3oYbSt2sNWJ2uJKstiu33fB560NPYJFZ+ipIcAyLwtbGS9KPAI587Hyl7hi+XTg8kLKkG9RMbA3Krz0YHYp1jnYZF+v+daNSfPWG4QI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6ce2c71c61fso3415467a34.1 for ; Tue, 31 Oct 2023 10:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1698771831; x=1699376631; darn=gcc.gnu.org; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=RJ+uoDNwI1UKmUyRBGANExDZXwaOI2nQmeJvLA0UN+g=; b=UV5yXT61Aqj/iIuJaEQlTV3a/MK+KmwYX3uDpPO3n3DVfeyaICA20nn+P9kM/DuzUL oxgHPNYNYggyINv+YZ0jlxzIOzHRIQD4Igm/FTP9Pb57sCNgPCRVxagsjB7D+VKVZype 01Lw9z3cjAa0WeoRZTesKrv3Ux3YiSoGdGqj84emc5fEJr3VBFk1abJ9KT39MgA7Uc4G plbS2DuTcGFZA+OI0m73DDBYX3E1PafXVVC5xyRGIGLYD1znWstVz47hLCm7F4cdP7TF mn9OkTpg1rdRHK+bucu02cSGNP+XwUDxMAs/fLXeGIARgxwnce4Y1q77jamN3ZHflGdQ AY1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698771831; x=1699376631; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=RJ+uoDNwI1UKmUyRBGANExDZXwaOI2nQmeJvLA0UN+g=; b=WPQowWk7J2ZqPWe7YzUJqeDI8+8j1zMBCGWgwjfgW1Sz1kgnvm38wcofdsqqSrm+uq Iq5C3aGrrQxR1bNGvPTFm794UHRuYNAz96RUnD+tLakAAFw7LUPGzevw5Q+UKHImOwjv cjRq2WYxNXgGj7lWNALhXm+tmDeVdXkT4amS6q8azZfiBCPlZeAK2uBT4NroEuZjeGVj m2l1MQwPbdoMJuA+wghSQCsixX2LtHU/XOcQOlfXyxbtwTPaxbtSbcyRseuR5mBP03gC iD3RfrkUU5yDrlSHuNBWdhFtIzf9xk2UpvflgP9NG/wFa4GtMNYecDgk0HOYE5dZM+IT ROCg== X-Gm-Message-State: AOJu0Yy5f01MIqKmSFakF82pd5bcYqCZVt6h76KOIH9wvghZw8ltjKrB qbDBMnYiPtAFG37I6ypJtaLBEg== X-Google-Smtp-Source: AGHT+IGm5xo0wswGkHdQKgriDxj0h/X2Cz+YDQ68GNKcMn19y+m63lUWw5M4yzXKMtr2bObNceRl2w== X-Received: by 2002:a05:6830:10c8:b0:6b8:8f20:4cbc with SMTP id z8-20020a05683010c800b006b88f204cbcmr12211561oto.13.1698771831233; Tue, 31 Oct 2023 10:03:51 -0700 (PDT) Received: from [10.0.16.165] ([12.44.203.122]) by smtp.gmail.com with ESMTPSA id i25-20020a4adf19000000b0058737149513sm105370oou.24.2023.10.31.10.03.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Oct 2023 10:03:50 -0700 (PDT) Message-ID: <0b341043-dbe1-44fe-b468-30e4e8d4d940@rivosinc.com> Date: Tue, 31 Oct 2023 10:03:48 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Jeff Law , Robin Dapp Cc: gcc@gcc.gnu.org, gnu-toolchain From: Vineet Gupta Subject: Subreg promotion not happening for the test case Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: Hi Jeff, Robin, This morning I was talking about the following test where subreg promoted is not being generated during expand, whereas for RISC-V ABI/ISA it should. gcc.c-torture/compile/20070121.c -Os -march=rv64gc -mabi=lp64d expand_gimple_basic_block     expand_gimple_stmt ...         expand_expr_real ...              case SSA_NAME:                   if (REG_P (decl_rtl)                       && dmode != BLKmode                       && GET_MODE (decl_rtl) != dmode) Here it seems to be taking promote_ssa_mode () codepath and not promote_function_mode Do note this only happens for -Os. Tree dump is same for both -Os and -O2, Expand for -Os misses setting the subreg promoted. Thx, -Vineet