From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35864 invoked by alias); 2 Mar 2018 07:47:07 -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 35854 invoked by uid 89); 2 Mar 2018 07:47:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx3-rdu2.redhat.com (HELO mx1.redhat.com) (66.187.233.73) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Mar 2018 07:47:06 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 989C68182D27; Fri, 2 Mar 2018 07:47:04 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-204-85.brq.redhat.com [10.40.204.85]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4FBC8217B40A; Fri, 2 Mar 2018 07:47:04 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id w227l23L029688; Fri, 2 Mar 2018 08:47:02 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id w227l1VB029687; Fri, 2 Mar 2018 08:47:01 +0100 Date: Fri, 02 Mar 2018 07:47:00 -0000 From: Jakub Jelinek To: Uros Bizjak Cc: "gcc-patches@gcc.gnu.org" Subject: Re: [PATCH] Fix ICE on invalid inline asm with "X" constraint and non-zero CONST_VECTOR (PR inline-asm/84625) Message-ID: <20180302074701.GZ5867@tucnak> Reply-To: Jakub Jelinek References: <20180301231040.GU5867@tucnak> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00085.txt.bz2 On Fri, Mar 02, 2018 at 08:19:40AM +0100, Uros Bizjak wrote: > On Fri, Mar 2, 2018 at 8:16 AM, Uros Bizjak wrote: > > On Fri, Mar 2, 2018 at 12:10 AM, Jakub Jelinek wrote: > >> Hi! > >> > >> Assertions are only useful when inline asm is not involved, otherwise users > >> can write anything they want. > > IIRC, we can also handle { -1, -1, ... , -1 } in certain cases, but I > don't think it is worth to complicate here. We can handle that as whole instruction special-casing all ones CONST_VECTOR, sure, but as an operand in inline-asm? Even the { 0, 0, ... , 0 } case is weird, we print it just as 0, dunno where exactly it would make sense, but we were doing that in the past already. Jakub