From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74918 invoked by alias); 6 Jul 2017 17:00:02 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 74639 invoked by uid 89); 6 Jul 2017 17:00:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:209.85.128.193, H*RU:209.85.128.193, H*Ad:U*matt X-HELO: mail-wr0-f193.google.com Received: from mail-wr0-f193.google.com (HELO mail-wr0-f193.google.com) (209.85.128.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Jul 2017 16:59:58 +0000 Received: by mail-wr0-f193.google.com with SMTP id z45so1768534wrb.2 for ; Thu, 06 Jul 2017 09:59:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=9oTqBvo8tdq0lGmfAz2AGFw5Jw0qHjl0T7HW+BjnMc4=; b=Nz5em0vl8P6qrw45DlD2FZ0cZesVFasHTYYxFctdNyyvcawVKnPflHnuWmPvsCcVhI wf8gBtWRDpZne5xGbDk9mu/Yq8MypsIh6816oOC2BYWcwIv0em+SFwOaoNCzvGfZb/6b qwTgKLXXc7Z42rlNzoe4dwlDz+xp7EZvVtwaoRMOqeowKusB3HuIMn+f2c+t4nFcw4Je YULQ2bSF0klDnApXIEI/3XAwl8EhACiUKaRAiwUKOqQaykc/lkTifMRNbG/ZHgg9I4uM UTaRX81hKhBM8xDxGdS66htLNdQd2sAD/1VuZV+AJd1bbbxXXtABNsaaOvvXXIoZ+hQV z6Yg== X-Gm-Message-State: AIVw113lFpjqof4cI3ViMFnkbVkkj0nFHskLb5486MsSBcChKvrcAmzJ 4mYp9Lg/teXXFQ== X-Received: by 10.80.151.189 with SMTP id e58mr97341edb.61.1499360396328; Thu, 06 Jul 2017 09:59:56 -0700 (PDT) Received: from ?IPv6:2a02:810b:c740:17c:d1e0:881f:fd3f:fbc4? ([2a02:810b:c740:17c:d1e0:881f:fd3f:fbc4]) by smtp.googlemail.com with ESMTPSA id a25sm450945eda.44.2017.07.06.09.59.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jul 2017 09:59:55 -0700 (PDT) From: Felix Deichmann Subject: Re: [PATCH, VAX] Correct ffs instruction constraint To: law@redhat.com Cc: coypu@sdf.org, gcc-patches@gcc.gnu.org, matt@3am-software.com References: <20170620200542.GA17979@SDF.ORG> <20170629154705.GC19263@SDF.ORG> <41726b53-19a7-8e01-49f1-09a887b69c5a@redhat.com> Message-ID: Date: Thu, 06 Jul 2017 17:00:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <41726b53-19a7-8e01-49f1-09a887b69c5a@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-07/txt/msg00337.txt.bz2 Jeff, Am 29.06.2017 schrieb Jeff Law : > Ideally we'd like to have a testcase for this in the regression suite. > > If you could provide the .i file and options used which generated the > incorrect ffs instruction I can use the reduction tools with a cross > compiler to produce a nice simple test for the testsuite. I put the corresponding .i file at: http://www.netbsd.org/~flxd/scsipi_base.i.gz See line 7638: bit = __builtin_ffs(periph->periph_freetags[word]); Command/Options used which generated the incorrect ffs instruction: /nb8/obj/tooldir.NetBSD-7.0-amd64/bin/vax--netbsdelf-gcc -fno-pic -ffreestanding -fno-zero-initialized-in-bss -Os -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-sign-compare --sysroot=/nb8/obj/destdir.vax -D_VAX_INLINE_ -I. -I/nb8/src/sys/../common/lib/libx86emu -I/nb8/src/sys/../common/include -I/nb8/src/sys/arch -I/nb8/src/sys -nostdinc -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/nb8/src/sys/lib/libkern/../../../common/lib/libc/quad -I/nb8/src/sys/lib/libkern/../../../common/lib/libc/string -I/nb8/src/sys/lib/libkern/../../../common/lib/libc/arch/vax/string -c /nb8/src/sys/dev/scsipi/scsipi_base.c -o scsipi_base.o Best regards, Felix