From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id DAB023858408 for ; Wed, 7 Feb 2024 15:12:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DAB023858408 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DAB023858408 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707318766; cv=none; b=FF/b6SY5P1Bnd/gycbYnx5s5pbC4c2/oUi2ebu77wYyBigtakgsUdmEYpVNdsoYIFoXBsM9MK+xEUcAgo9BYEpWYoJGmQMidD2oBY/j0NIl+vWDaOgaYM9bUSJPhpxqHJUEfdp3SaTeV/ppPj28GdWuZgyb4LRtljUODBbKSqTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707318766; c=relaxed/simple; bh=ZonVjTJz5cUmjFS5TQT6/2WRQZWkqg2UcK8/yy8TLTc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=J3e41WNjekfWgvLrqP59EgsQwccgILk0QLtl8SN0mAhHwpNdRsZdefm2EAIfIi9/08e/Hl3mOyoMszzwLgUhxKDjZiewTf1ki95YEcLzZzvxqE/xMK/3nBpAyj+SH8EbOGzaeT3kfH+a8yC1JpWWN0SIQZR58kzHPOrqd1tTsPg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707318764; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=wI9FNQITzIHf0hOPi+7wLRjq5q46Mcmak4DH657i3QY=; b=ePOjLPm047iafK9sG5b0LAZlbowsO0yqqx2TwVmdYlkk5urCLfypyqts1mIyZR4bT49Gy5 ByHX2o8CZh0JkK5bvUx6fYSZ6CaU14AmeUKg0VCrxuR+XWI4nvWhxNASxTOOQZGePvRckW dxC9YfmBlAGbei+CCnFjVvp6QzRTEn4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-59-Dgp4kksUPYqzFGcUyoC-hg-1; Wed, 07 Feb 2024 10:12:41 -0500 X-MC-Unique: Dgp4kksUPYqzFGcUyoC-hg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BE3548DC679; Wed, 7 Feb 2024 15:12:40 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.70]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7E3CE112131D; Wed, 7 Feb 2024 15:12:40 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 417FCbPt1977659 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 7 Feb 2024 16:12:38 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 417FCbch1977658; Wed, 7 Feb 2024 16:12:37 +0100 Date: Wed, 7 Feb 2024 16:12:37 +0100 From: Jakub Jelinek To: Paul Edwards Cc: GCC Development Subject: Re: gcc 3.2.3 x64 negative indexes Message-ID: Reply-To: Jakub Jelinek References: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LOTS_OF_MONEY,MONEY_NOHTML,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Feb 07, 2024 at 11:02:51PM +0800, Paul Edwards via Gcc wrote: > I am using a slightly modified gcc 3.2.3 for x86_64 and for this code: Don't, gcc 3.2.3 is not supported for more than 20 years already. > int fff(char *x) > { > return (x[-1]); > } > > > It is generating: > > .globl fff > fff: > .LFB2: > movl $4294967295, %eax > movsbl (%rax,%rcx),%eax That said, I can't reproduce it and get movsbl -1(%rdi),%eax ret from 3.2.3. Jakub