From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id 2CE033852AD5 for ; Tue, 11 Jul 2023 14:00:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2CE033852AD5 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 179161FE12; Tue, 11 Jul 2023 14:00:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689084004; h=from:from:reply-to: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=wy4nS8TeQzEv332zJBoQdFsX2JcetovUFY9GQohhNfI=; b=Y5U7YgdDaJQd2j+UDyfOnWEY1qmO3DYRMcpdUupv4CTTZj4aeDG456aSV+iMN192M+v15f cyFJQ58zqvBsiafBsnWe9LCAIROJZ1Jdk1yBKuVF4rIvkhfP7lnSp40ZmNdiwLKiiLOG3P Cf2RbIvc3NUZcEpicnw9E/utQ+71E4o= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689084004; h=from:from:reply-to: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=wy4nS8TeQzEv332zJBoQdFsX2JcetovUFY9GQohhNfI=; b=wngthGUNTAcAqntfXgaiVXoAaEj7K2U9NDbe5GkaujVYq6n2FpeqLAZLhHGeKZZAgX3FKD 9SU6d1Gy8HTtHsBA== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 077802C142; Tue, 11 Jul 2023 14:00:04 +0000 (UTC) Received: by wotan.suse.de (Postfix, from userid 10510) id F13F367F5; Tue, 11 Jul 2023 14:00:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by wotan.suse.de (Postfix) with ESMTP id F000E6419; Tue, 11 Jul 2023 14:00:03 +0000 (UTC) Date: Tue, 11 Jul 2023 14:00:03 +0000 (UTC) From: Michael Matz To: Jan Hubicka cc: Richard Biener , Alexander Monakov , gcc-patches@gcc.gnu.org Subject: Re: [x86-64] RFC: Add nosse abi attribute In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE 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: Hello, On Tue, 11 Jul 2023, Jan Hubicka wrote: > > > > When a function doesn't contain calls to > > > > unknown functions we can be a bit more lenient: we can make it so that > > > > GCC simply doesn't touch xmm8-15 at all, then no save/restore is > > > > necessary. > > One may also take into account that first 8 registers are cheaper to > encode than the later 8, so perhaps we may want to choose range that > contains both. There is actually none in the low range that's usable. xmm0/1 are used for return values and xmm2-7 are used for argument passing. Arguments are by default callee clobbered, and we do not want to change this (or limit the number of register arguments for the alternate ABI). Ciao, Michael.