From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by sourceware.org (Postfix) with ESMTPS id 1BAC23858004 for ; Tue, 16 Mar 2021 09:04:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1BAC23858004 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=whitebox@nefkom.net Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4F06n007ZZz1qtxP; Tue, 16 Mar 2021 10:04:52 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4F06mz6sDfz1qqkL; Tue, 16 Mar 2021 10:04:51 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Bo_yCrL-Oruo; Tue, 16 Mar 2021 10:04:51 +0100 (CET) X-Auth-Info: J6i2FRXD97dgQVsLKE+hiowYE20+WGQ7DAA7XW9VV6Ryvp9Era8SFz2J3dcawNBi Received: from igel.home (ppp-46-244-163-222.dynamic.mnet-online.de [46.244.163.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 16 Mar 2021 10:04:51 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 9D36D2C37DC; Tue, 16 Mar 2021 10:04:50 +0100 (CET) From: Andreas Schwab To: Carlos O'Donell via Libc-alpha Subject: Re: [PATCH v4] x86_64: Update THREAD_SETMEM/THREAD_SETMEM_NC for IMM64 References: <20210202191209.4036619-1-hjl.tools@gmail.com> <60a3a304-7f33-3727-a39a-5420d26d13a0@redhat.com> X-Yow: TONY RANDALL! Is YOUR life a PATIO of FUN?? Date: Tue, 16 Mar 2021 10:04:50 +0100 In-Reply-To: (Carlos O'Donell via Libc-alpha's message of "Mon, 15 Mar 2021 23:01:36 -0400") Message-ID: <87ft0vzcy5.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2021 09:04:54 -0000 On Mär 15 2021, Carlos O'Donell via Libc-alpha wrote: > Then we try to fix this with the new sequence: > > asm volatile ("movq %q0,%%fs:%P1" : > : "i" ((uint64_t) cast_to_integer (value)), > "i" (offsetof (struct pthread, member))); > > Note that "%q0" is a machine constraint for any register. An operand modifier isn't a constraint. It does not change what the compiler matches for the operand, it only modifies the way the operand is output. 'q' has no meaning for an operand matched by the 'i' constraint, since that is never a register. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."