From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4FX8CcSImWRlIQAASxT56A (envelope-from ) for ; Mon, 26 Jun 2023 14:47:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uE2/CMSImWSyGgEAG6o9tA (envelope-from ) for ; Mon, 26 Jun 2023 14:47:00 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CDC4E1DD1D for ; Mon, 26 Jun 2023 14:46:59 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=l+Xq46yr; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687783619; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Q3SrNB3/9BknWXrVXQY1Lo9YB8E8g/DrbnvvbG6ob7w=; b=rmfUt9v9oAEkfELExYbC+Qo8hCre2BfcuOCHc82K5O/uoDJNddVigpOsnzdQobfTXMJwCh WkhwzsbR/hu+9bKnvki7p9Mx8InkEsz2rSTRqPt1oqCWvBwnc+TXSd35Kk1ToVuVeO6B+I 6/KVU4WYP9MgGsfTGPYNvADPM4406yyljqe4aR7pOuDI3VY8+7VHrjWpGBMrBotHu6QyRX ODD66Y7rTFG3hAs8yREohS53KWKnEJAU6mUgywDaVfm7Ixc7+w0+MHttpIGppl/do3hhi5 JDtt62WyI8w50rQ91iJTry2fhBIUdXUGV1nfwDiI1w0U2odWoc977dRTB5ocHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=l+Xq46yr; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687783619; a=rsa-sha256; cv=none; b=RfFtNWqdaBdfRZG2b432mZGN19Z0QD3On4ek8WL0Y6KYVc3bmXvEYWrhKADOcLCXv5KtRC T4Ns2BvPrkqvvZbLp1XIvYd5LNxl5yfXtGuhXDKAk5Nw41tGo8qJwYr0O7lEIC6YRJ9NXp XXQEit3SQrYU/2bPMqMO4uoYXCl6TV9lztfbKzkIb6eFAllPN7KJceE7LIjlVHSQ+m8EY9 2zMB2S/6p7Ootv2EOq6ORYALMzdBXkdNSMGd6pywYzF0qqR6exkanLab+n9dTLT9TCi6m2 YMVh13V1XgbcuV43nFvcTjDA5X5w7bL9vxTEB/qWz08sdjnoGjeUNvs1ChAuWA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDlWK-0000F3-Mc; Mon, 26 Jun 2023 08:40:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDlVq-0008K6-Vq for guix-patches@gnu.org; Mon, 26 Jun 2023 08:40:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDlVo-0005xt-DK; Mon, 26 Jun 2023 08:40:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDlVj-0004IR-Le; Mon, 26 Jun 2023 08:40:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64188] [PATCH v2 3/7] guix: cpu: Rewrite fallback for x86_64 cpu->gcc-architecture. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: mail@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Mon, 26 Jun 2023 12:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64188 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64188@debbugs.gnu.org Cc: Efraim Flashner , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by 64188-submit@debbugs.gnu.org id=B64188.168778315316369 (code B ref 64188); Mon, 26 Jun 2023 12:40:03 +0000 Received: (at 64188) by debbugs.gnu.org; 26 Jun 2023 12:39:13 +0000 Received: from localhost ([127.0.0.1]:44762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDlUu-0004Fr-QI for submit@debbugs.gnu.org; Mon, 26 Jun 2023 08:39:13 -0400 Received: from mail-lf1-f44.google.com ([209.85.167.44]:46162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDlUp-0004Eo-KO for 64188@debbugs.gnu.org; Mon, 26 Jun 2023 08:39:08 -0400 Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-4f957a45b10so3990141e87.0 for <64188@debbugs.gnu.org>; Mon, 26 Jun 2023 05:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687783142; x=1690375142; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=Q3SrNB3/9BknWXrVXQY1Lo9YB8E8g/DrbnvvbG6ob7w=; b=l+Xq46yrqW1kFcI2yxrg6goPt5HxGJusMUJYK+fYwDdjtk3xrY9zb7Tel72gVKJxDh O8MP92BthQjFgkPoegtPE1ZHmB8QFzOuEls5732Mak/jjZ0bpJPjxHX361TukoGPeoNb hOP/Z4D0+7mfhHBEzglJZHR83Davtivw2jRe/vLsXSdnekrdJBdsqr65G4IftDQz7qIU cAVqm62eCeDPed1yOx5/E20LohodDgRM5eA66/wyxXFeXnzEBTBcXOqQhsWuwp5Mlzow EV5qRhlYju+5HqNATqeEr4cBll7+IsHslKfWo8XgatSdYFYOAUVlfNrDgetIZbYG1zKT PFAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687783142; x=1690375142; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Q3SrNB3/9BknWXrVXQY1Lo9YB8E8g/DrbnvvbG6ob7w=; b=lPNkg8dQs22qEpPJw9fx9S/Jf2CsI2xV1TQ7ONLDZZbbUN0at3Tet/IOj6r45texvb JRpjT4hhZyrk+ADGtpbNCelagHu3GBBQ64ufWsE4tTh8LhEiJBm0zeXlBIksRlIMZLKB F0/q35LviWFLyszzc7Rrx7eoWVQOdgnEwWc4UYNOEnd/ssdmeq9IjPnzJifW7yXBZqRO jyV+RSU56EqU5FqogbdtNdLP4D/pSzMLmiQHzYY0TTe6WddKYnaqNnJh/zIHsP1ZIldc Kw1W27tar/7q3fqkfFBOPrF6urvUOp2efOkLItFPz8txI2gFntIOdjTNq2lSQkSGJedc KRcw== X-Gm-Message-State: AC+VfDw5Nrcxtrph0OjnP3C45I18vnKy+lMBn8ZsV6MtleMu0TuViC4O Eb98I6VqY/UJXy7AQYumT1cJKfZOmTmRrA== X-Google-Smtp-Source: ACHHUZ6dN7rxn4nRHGKrbLaCdqr7ZzbAcdorsG2oeLpiOCa4Vr99JWJ/imABCTdOffzIz+aEPJBm3A== X-Received: by 2002:a05:6512:2314:b0:4fa:21d4:b3ca with SMTP id o20-20020a056512231400b004fa21d4b3camr2744761lfu.2.1687783141645; Mon, 26 Jun 2023 05:39:01 -0700 (PDT) Received: from localhost ([188.120.129.124]) by smtp.gmail.com with ESMTPSA id y17-20020a1c4b11000000b003f9b24cf881sm10515134wma.16.2023.06.26.05.39.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 05:39:01 -0700 (PDT) From: Efraim Flashner Date: Mon, 26 Jun 2023 15:38:39 +0300 Message-Id: <4a54a8434bd741fb7bf2d3067fd8dcec106b3ece.1687781377.git.efraim@flashner.co.il> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.05 X-Spam-Score: -1.05 X-Migadu-Queue-Id: CDC4E1DD1D X-TUID: y2KdnjRzgEEq * guix/cpu.scm (cpu->gcc-architecture): Adjust the fallback case to use cpu->micro-architecture-level. --- guix/cpu.scm | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/guix/cpu.scm b/guix/cpu.scm index 3fc12327ed..1a75b8ac62 100644 --- a/guix/cpu.scm +++ b/guix/cpu.scm @@ -209,21 +209,7 @@ (define (cpu->gcc-architecture cpu) (if (and (= 7 (cpu-family cpu)) (= #x3b (cpu-model cpu))) "lujiazui" - (if-flags ("avx512" => "knl") - ("adx" => "broadwell") - ("avx2" => "haswell") - ;; TODO: tigerlake, cooperlake, etc. - ("avx" => "sandybridge") - ("sse4_2" "gfni" => "tremont") - ("sse4_2" "sgx" => "goldmont-plus") - ("sse4_2" "xsave" => "goldmont") - ("sse4_2" "movbe" => "silvermont") - ("sse4_2" => "nehalem") - ("ssse3" "movbe" => "bonnell") - ("ssse3" "sse3" "longmode" => "nocona") - ("ssse3" "sse3" "lm" => "nocona") - ("ssse3" "sse3" => "prescott") - ("ssse3" => "core2")))) + (cpu->micro-architecture-level cpu)) ;; TODO: Recognize CENTAUR/CYRIX/NSC? -- Efraim Flashner רנשלפ םירפא GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted