From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oo1-xc33.google.com (mail-oo1-xc33.google.com [IPv6:2607:f8b0:4864:20::c33]) by sourceware.org (Postfix) with ESMTPS id E89DF3858C78 for ; Mon, 20 Nov 2023 03:48:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E89DF3858C78 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ventanamicro.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E89DF3858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::c33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700452130; cv=none; b=n4bUy+f3V357nyqpTrM2EiC2tXcwghqAMlK+JVs0G/3OkD4qsJwIlqckxuecD6yyxQ7NezYzXVzI2g+6O81frkGyeLkLOVDBSxOHsavLVOdCvr5eXd02a86jpv9dftN/opM5D53yuZWK5RhIplcvyA1ZpoN/XaoT1nHH73+LqEg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700452130; c=relaxed/simple; bh=yQptTa5oh1c39+yvDecvA0C2BW/uq66Ln9lYTc8NOtU=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=w7z98NoF63jdK2oywuySoygA7uOJumeL/7MUdYVyTw3okLleY6RUV/iAFv+APHW2Sr1+o86YE6KPiGFFrQ5eWQvWMKmMnR/qwQKOonr9i+pCAC95U8wzFQNdL1TMylWB5Oe0Vn7dPo7o15H6mlQ7m5alXhMcqJdMLKANw8Xga0o= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oo1-xc33.google.com with SMTP id 006d021491bc7-5845213c583so2207801eaf.0 for ; Sun, 19 Nov 2023 19:48:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1700452128; x=1701056928; darn=gcc.gnu.org; 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=t3OWne5voaBA1d22pWTpxFjsawL00r4XERiXahrA5G0=; b=LPCGmNVHgbXyydLMg68rQb1/iXtypjTykjMvv+lrWvhdHhphgBDPcFpNLV8SaiZsgG UEQ0Bb1dUvz5P/0QWAi6aPPvGfv32MahACYwBZoPaFAtW8roB8kd6/0RFancW9XocTx6 ChZgWVgHGM6teYMCqSqX+VqKTVYk0oP7hnTX34te/DwWXvpIAAqVaKZOYieOKTXI4J6k XUigJm0nCxXbjF06R4tYCy6tUXaRDt6dpIJHi3PqI1Oo5UrPkyPkTouo9AuNTtCQQSWI cBUQcJyrW5AFEpC3KAdLpEelr0/ivTIledML44QEwQrlS25mCyFlzGPdIOZiPyj3tHM1 zJVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700452128; x=1701056928; 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=t3OWne5voaBA1d22pWTpxFjsawL00r4XERiXahrA5G0=; b=U54PrTN7iLY7Yd0+2/2smqak32NmtDoyCEP4HWDtFta2OGJD86FpO4AQpkojKp4yrh ioE9RfSqziacRuFNOtYSvdyuVxLTh+ngrulzcWqrKbFHhHAlEMjn2/lvLlNwXfE0S/NI tTrYJWaew6a/Wzx+ufT5b/t1QxttJm4NZM6Ro/zCAhd1avi9e8guidPodocP1FTo0evs gxXG7RNP4gnUzYElhVnOjuSQB+bJlKoPbyVy5xaRT2GYpwXhbBsqZ/cMTXSwzqc5cYyL 72vprF6UMql3btnVJMQfvDtxm/hMEDtMv8tjAzjvEzqIBKjikoSGRUBT8wu7GyRsOesc akuQ== X-Gm-Message-State: AOJu0YycNUoDX+a29FMevTf4fDyZEFuhnGTLpd82H3fvw4Tv6aMlfsKc SwCRRAG+cGYk4E/flzg/o2oFPw== X-Google-Smtp-Source: AGHT+IEvadkHN+OnUJ92utCOsWVrP9ALJU3ZYbRamEGB/Pjx5oLVAu0gjuYOFaWd8eCbI/JhnJFXPQ== X-Received: by 2002:a05:6820:1519:b0:581:e8c8:f7f9 with SMTP id ay25-20020a056820151900b00581e8c8f7f9mr6981726oob.9.1700452128221; Sun, 19 Nov 2023 19:48:48 -0800 (PST) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id dm11-20020a056820280b00b00587b37a1f86sm1256633oob.11.2023.11.19.19.48.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Nov 2023 19:48:47 -0800 (PST) Message-ID: Date: Sun, 19 Nov 2023 20:48:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFA] New pass for sign/zero extension elimination Content-Language: en-US To: Xi Ruoyao , "gcc-patches@gcc.gnu.org" Cc: Jivan Hakobyan References: <6d5f8ba7-0c60-4789-87ae-68617ce6ac2c@ventanamicro.com> <4c3588b1-f05c-4e7f-ad7a-e7050cf45859@ventanamicro.com> <5e54ada2f2a818e6ed375044a07895469bec0010.camel@xry111.site> From: Jeff Law In-Reply-To: <5e54ada2f2a818e6ed375044a07895469bec0010.camel@xry111.site> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,WEIRD_PORT 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 11/19/23 20:32, Xi Ruoyao wrote: > On Sun, 2023-11-19 at 19:52 -0700, Jeff Law wrote: > > /* snip */ > >> >>> Unfortunately, I get some ICE building stage 1 libgcc with this patch on >>> loongarch64-linux-gnu: >>> >>> during RTL pass: ext_dce >>> ../../../gcc/libgcc/libgcc2.c: In function ‘__absvdi2’: >>> ../../../gcc/libgcc/libgcc2.c:224:1: internal compiler error: Segmentation fault >>>    224 | } >>>        | ^ >>> 0x120baa477 crash_signal >>> ../../gcc/gcc/toplev.cc:316 >>> 0x1216aeeb4 ext_dce_process_sets >>> ../../gcc/gcc/ext-dce.cc:128 >>> 0x1216afbaf ext_dce_process_bb >>> ../../gcc/gcc/ext-dce.cc:647 >>> 0x1216afbaf ext_dce >>> ../../gcc/gcc/ext-dce.cc:802 >>> 0x1216afbaf execute >>> ../../gcc/gcc/ext-dce.cc:868 >>> Please submit a full bug report, with preprocessed source (by using -freport-bug). >>> Please include the complete backtrace with any bug report. >>> See for instructions. >> I think I know what's going on here. > > The gzip-compressed preprocessed file attached, in case you still need > it. Thanks. I'll double check with it in a bit. Basically there was a late cleanup that could result in walking down the wrong part of a chunk of RTL. My tester is about 30-60 minutes from being able to start a run with the fix. Jeff