From patchwork Fri Nov 10 00:17:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jose E. Marchesi" X-Patchwork-Id: 163690 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp794131vqs; Thu, 9 Nov 2023 16:18:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRinhsKjZ9G8QdHU9aV1iycgYjUWoqQt4HRk6e/ZvI+lI6dDpIi7Z8dkK28fQi4bbtOB+U X-Received: by 2002:a05:622a:1995:b0:418:224:db06 with SMTP id u21-20020a05622a199500b004180224db06mr7732818qtc.50.1699575500480; Thu, 09 Nov 2023 16:18:20 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1699575500; cv=pass; d=google.com; s=arc-20160816; b=y+EbeV1r0ENHlpF6eFvLJB2Hqi1HscmvXAHV8Ws34t1/0vpGkb6ATo8OgngtmERt6N JFF5JBBZEHczh8O8+lOfeAi+33i9CgHC5MK3UJ9rzZOcF/04oCXJUIZDJFeMK37EN7V8 /RjZW9UWjrBPyec4XhS4DGjhqSKVSFYNGOSj0GG3If5enEcZLMl0/6qQaaFGzfpSIbPD CmZSN8Dsk/kgAY2ICt68SDVITbPgwORq/lhUs5DUjN9V0WM4Eq8bXdsHiLL7U7p8YC67 CeSt2o3dRjaPyptfeKU1NzaZqRjBl3QB22FTrJWlQ5/6Ai+az55kQUDbV8yLvrJgFUg7 +xYQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:message-id:date:subject:to:from :dkim-signature:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=WIjWAkr+xWhrvcAjhcmqIqHYDBZutxUiNB7swrEKuaM=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=Lxl72EmUH7N+tx8mHJnphLKSk/rUOAGS9YjtupEPdZgBzGsQLKldjRZc1G9LXZOpto OyeKtn9uGshIZt026RriuZuid9KqytcA46AiKv91OJ3ITErDUnvCio2KrbkBd8Nsq3BL uNGbZrELYO6tOd+YZt4U3+zrHpQpHMHKXbTBJvJkaRFsgu2I/L+PEjgSbTGgVxKKvUOl wXbSKM7fY7l5kKOiSMIGC1UHMSatmAudM1bbq8l7ZI7BLww0zEkcHdLfB9QMv35odh/r 8aN5gzv/2bEOMzdv0uaxtrvD66Be9tx2wKMdsO//La0Xd+pet2LXu8Z8fqqsUASViTL0 3wIA== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=3gd8hafF; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=GqQqXCcE; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id g2-20020ac85d42000000b00419c0bf4c1bsi3798498qtx.375.2023.11.09.16.18.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 16:18:20 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=3gd8hafF; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=GqQqXCcE; arc=pass (i=2); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3FF643858423 for ; Fri, 10 Nov 2023 00:18:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 15BDF3858D38 for ; Fri, 10 Nov 2023 00:17:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 15BDF3858D38 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 15BDF3858D38 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1699575452; cv=pass; b=PeY6d6hLv9waS97H8rf/SQsa1KmZQIkDQHEwjuz6wnEI3q8jM+f0ySsJyDPkVf3gEom05AVCN6Q1/4QsPfPmnHtu+yDdQJbw2i/IabfMSZ9tr3BPhodEy83czv+voovk30HZKM8gqalUSrpdBS89rJk/tQoyskbmCZzgaip4OG0= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1699575452; c=relaxed/simple; bh=ZOznQfBjxXsXOSD/ZVtx6j+91Jxr6rVOp29nWA/RDXE=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-Id: MIME-Version; b=Whp7mAvihdbtRi8Gm5iQI/7xXnOqflRqYAnwfnlzp7y5pf6YXdCRlovn5IolXC5v/qJSev7xW/8EirLS27uZzoNWgpSq6HPP2b3ApcGQlDY5btQY6AokBvzHyUAT2oF7n0utm4mYlefVQcc3SM49arGcjeu3w5Q5fKCzFKtzh7E= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A9MaAS4027405 for ; Fri, 10 Nov 2023 00:17:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=WIjWAkr+xWhrvcAjhcmqIqHYDBZutxUiNB7swrEKuaM=; b=3gd8hafFM/B0mcPmYiVNAY48w9I1qq24BvIh7TdlQd4/dV4GHZRvm0G1PTOhRz746xa1 id68N0dhBPFbkhctnVrcv3l9dHI1oTVmQ2fEjm1jTEdbNhBWWyGWbT7l+zaOFsxeozER CxYZav5PdDJWWW9A5xWyfp/QEnNWDEPT57zY/TwVFPPG5qgmnVL0s194bTEacAC2Wvkj 7A1B9TuIYLSiY/zGhluhdPvmx+MTMWqUGdqQqydOkh2cuCcCrNDtAYbk5du/3Cr8pYRL 9hwn+UVlmM/ghA6ShCnQPgnziegNhrr8BBxEOWDmCm5mMmAhDqXPl/ZZ9XrGx9PN1Q3N xA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3u7w23n9c8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 10 Nov 2023 00:17:26 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3A9N0WQH004090 for ; Fri, 10 Nov 2023 00:17:25 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3u7w206tw1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 10 Nov 2023 00:17:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iB8xyBQp9Q+iMhBWSaCTmrL16wg4Kes50Bw2R11cz2XfAjO6ea+NAJaFGVHacwVcjKmXF0zW7+6WCXIiyyBYVO7V2/dxa/AF9YlJGKiR/KOiIuScPBufotT2MXUQCX+l5uU2KOX3U7ZTOh6/UqnfRxyRV4VA2cYkUZy4KLpqDMOH3FE1NZhz3DiT2ixJUkDbo8hrj6JvVMUvqCV+ncBLcM+M4J7YoSVPjJK8XlLXsUJxeZXxYHOpeKPgSuxX64WZHosuxYexOKy6GNrr4OCfq5Dp4GM8rygES1tiiHk0KUUhg6xPfPnZcP5BWMe7mh/+K0ewn/WBbiLV5SXr3+syhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WIjWAkr+xWhrvcAjhcmqIqHYDBZutxUiNB7swrEKuaM=; b=el1KG/yTjGZSLa/rQsj3brUGcwE8t5HGzQlTVxmw/Udn6i90Lgu1nrH3fWaykmt9iQu3DPCu5BOa2d/td0jGvFGaqMcw4IBBuQgWukUN0lloMogXnEiyJlsOZfRFsGL9KJv+uC0JijPLnWMT9215suKZzsebIvhBlDN5LUkU81uiZ8eRzmvJZ88wTlTzCgUkr7ZbpaPyO9q2rjHRyHi+QY4qE9EDjS1gj3vVChLh6BzupJD+8H2V+ZF2CPDNtVst70qT8I1imHKM09tLOpq4oncs9JJo6Gqdg4dOIWA0N7kWWZIxMNVE8kcugEzr+G262AMkam2qiR9wCJ/908ae3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WIjWAkr+xWhrvcAjhcmqIqHYDBZutxUiNB7swrEKuaM=; b=GqQqXCcESFqQn1mz198uoeh9Pwh9h9Qy7tPeHXyATmP9rD0vYAMJCZxvlfQTGt7j57ZuGoI2iIoYs84zTk6UVqY2xsquE2kiIaCLWrKdWeCPH2AMs5lNxtP+dbfxp5632XsyWiiQtBjFPQVNSV85x64yKOe5u+/hAWydK2Fg4No= Received: from BYAPR10MB2888.namprd10.prod.outlook.com (2603:10b6:a03:88::32) by CO1PR10MB4561.namprd10.prod.outlook.com (2603:10b6:303:9d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.18; Fri, 10 Nov 2023 00:17:23 +0000 Received: from BYAPR10MB2888.namprd10.prod.outlook.com ([fe80::4d6b:7b15:5d6c:8dd3]) by BYAPR10MB2888.namprd10.prod.outlook.com ([fe80::4d6b:7b15:5d6c:8dd3%4]) with mapi id 15.20.6977.019; Fri, 10 Nov 2023 00:17:23 +0000 From: "Jose E. Marchesi" To: gcc-patches@gcc.gnu.org Subject: [COMMITTED] bpf: fix pseudo-c asm emitted for *mulsidi3_zeroextend Date: Fri, 10 Nov 2023 01:17:20 +0100 Message-Id: <20231110001720.20880-1-jose.marchesi@oracle.com> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: BL0PR05CA0015.namprd05.prod.outlook.com (2603:10b6:208:91::25) To BYAPR10MB2888.namprd10.prod.outlook.com (2603:10b6:a03:88::32) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR10MB2888:EE_|CO1PR10MB4561:EE_ X-MS-Office365-Filtering-Correlation-Id: be816be8-c00a-41d7-c28c-08dbe1826935 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0ItJPpYfRVPlzTafvoWRaNEuseCyPhfUORkKGFtQGnY5mdVMsZd6kt9fhKdtzIwvVQ7bKPhZTNZWXs1InUQBqP/GRKKGTNStILmjdXJNFd827nA7TEubvz/rNkDwBlVT60q3MN0iY4WO0ZBd2zmr62N9SDBJQzV7NXMbfYo4w0IUKZ97L43EkrNIq+dcce8ng9qDqbsl64EbyLpm8ZzKI3vzGWIFgYjCyf9w9PeW2YuMLYwu3ttXCnBMB37lG2Zb/Qr3+ZATo0XGg5Vb4Qj90r+i7YjLjYxnyg3ICcTvkqsZLA7K70WYVV/6XCd5gaG9N+3d3epS4mP4R8pkTFIGJQDhE2Pug+iu4g4UKM0mCkfzvBKSKrKhK0jc5cbJ0N6F2ibVnwgCGinvtxYLprE6wfqUUmN/udo/6ZhyF/bxaGbJ8pFD/oHALL1hjFRnY2xodI3RMXTtiuZb5FG41anx5ndXnadjzomBSVgpOn2DPV187ru1D5A+WqJxRPiXT4DQuYY0HTZXWpSaniK6IcgXmEADod5rClC0ZSw/TK0t6y4= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR10MB2888.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(346002)(376002)(39860400002)(136003)(366004)(230922051799003)(64100799003)(186009)(451199024)(1800799009)(36756003)(66476007)(316002)(8936002)(66946007)(6916009)(66556008)(478600001)(86362001)(38100700002)(8676002)(6512007)(6506007)(6486002)(2616005)(41300700001)(2906002)(26005)(84970400001)(83380400001)(1076003)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hbvzBQ+wmCkvhhBzzmD4/BDP3OsOW/pRpPGnNiJOGFlYXzU5jrfkVjWRfCTN2uTl0faYojw/KAqUOSN0wj7DnhcVNntb9nwnOfQUd4MaPi72rkOfRjdJmyaRYXSRZBuCBGKC2Gy8/ehMKFf/48lwmmnVF0sMlG7x/CMgHWIe1FAtSAlDOGo81UImr3FozleaBw/mjzdYSWUlIzSqryF6dr4KH078qp0xAHA6UqwTInjpurPv+UVoOYaRO5kbkQYB3G7x8QPww+mFtZmRv/0BaYW32ZyU4NmvfkDK5L9OWej4ahgjxKFGQh0CY5S34HRJZa+ZiFvunkOXYMxZJjWptsQcxyvORTWr4SbJTLKj4jkTZrpAKbKW9CB/P7nDiTNqRVJ5bT7HXk6gkylbexJKnPf/9bGuC+r90Xu5eQwDCqIAOxQydbWEeK8OuWK40h4GdYuTYIngplxBuxU9dXsqwMi9+rfdUup150F5mm0VS4lemSofvgePoooHBSxwlBXNyM9FpJHS9MCITBKew/Cy/hX2FM9/cuL4PB1ynAvx5dWN38IrwX4SQv53OtLcki4qckPzULSpQWiRSWQGw5zJBe+5V0MQGtSqa7UMoXqG33OsyhMv256BOnccEyEWcuq25eEITtMe2JXv24fb3wCZREtQ1MG1V+QeDYaJuEz0xO8905TiF91HSrNL2oVPBDS54Ir0au5l1nOaeOZG2jXsPiSbbw/2HBbrZ4JjK06PLZxzL+5jkEuOqdBu9y3Ypb+k/mc0KyfanGEf0RNkQHLed4Q+hfsCHfgl0dndeTO0n2WnT9gEkRdwnvwheQTiTq+3DEEiMLug/CnW3MhcvaJ2ZMJo8JzRFLJNJQ/YBEFWu4AyzTHDPlXp2YPbCw+FPYp9fslI43J8Zx1+1E+WRF/8bhOo+W+ZLMw6d/hanK1JoZlJMl0JCK+ehGytMeTXox4NFOJPxcLhiy7PY8+ZRo0bCH6QhjOUfiGUzVy5WcUoLYEX0fBiiDrhqrXnsov3Ccj0xNiqZrMlIVQ7glTPBYCtb9YT530v9JeTbd+G0gLhO5N7cnrwyxnWbhZsEaXrG4Md9Jx7qim+lOchJp5N8dxVZIEXzLJELZ7Qy7NrbfqYCY9XAoxb+5Hs2OZBAZUi2hqHU2WMdVgseOQMCyPgmJRJIpX48OJQAKb8mShpvCO6kJA5+21RjwZ8vfR/MvmKKp9WeA1IXK2oeR4Ro0Ru2dSNpikF1ag0eOUOJGEw6OFg2ZUIUsa2S1WRrRBC5AOOXAVvJGjwyO+HZlO0Ms7UaRRFwUSugsAZite3PTJkqOSGEOFubVdKg9Limd8ur09dBuu3YUudQbF4/pzbY1EL7141XSC0+taNAqPE7FjKUw2Nl70S1zlGy9YBMhzQkfrA/npJo0Gl7lAyW/yWfZdiOz/2+5/sxSy//4GLzcgkgL6eKyJtog8/4MLoOF9hHsH0jcs7j2CQyR48dtKWb5uHYJBq4em+Rm07aGJ+WqpawKJuqRZjtNml2AdzIOn2DIS4+dw0kVe2l/1ouSlBKPn8EFN9jidX+YCU0uduEIWipdWh1rZ8WxReROKOEDwC06PfDbGtHlGO4n2WRESL4/gGMIah4Q== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Kl1hnhgrJ+1RBm85dRMiCW20PoByk9qtz+teyDq848F2YO0Zd9TMOIYxXWjnK0zmsSDqWzv/2DZ9a8mW6IjjBTYOHxYKunrG940X/r/mP1BWp+VbVsRSqSd0MNsD/q6JtHHP3s/k2umGwqUg1GbwH/6ZuEMAS/E8vPy38uIAfrniswhYq4zxLLgkWdMJierNLImm/LqvdWBU3F6Qn9YF485MGe1kzgXMPFWVoWoCVNpyhIRa+hni/wN1n5hlmxj3DmLmB5HdAAsoHMrgMwOdUwotGyHDeSG9SFhUUdLTBxyFjtqkdTdN4Cu0SjA7L2aBDYhXF2WmYW9j3mTH2aUWBfaUfDyB0Kb532uGmyqGzEIcMAMN/yEAd8K/RISBLZhVdFU/LLgALCqKrFRvP0cRZ5p3C4qPhBNevJaluXtPvyU/LLzVUXv2qst1aIHdgzc4/9eGcE8ms/DZ6D20PznkuiEu/Im9bbPqEyc8WpMiIlsRRnp7liw9UMy0Buhz7vUpqnBhFM9GiFtXO+BgokJmZjuj4NW2M084bFObKiKb4w3GHn0VP6Sdu+GoIaX+iyRyA3ccuI940+jVYKUCqOE/3PRjk5r9IxxRI/1mBunjLuUAEp5/88fhy/4aS9JiNnBQanr3+oEVTXXjCJ3qhyOy4nTqHokwACWEYvaPyUW8rdtk7CgWBMm3nJnC5z+2yK0TmKb9aRqoCgb/vrnFZBFx5wMItIJShj+ZN8TqrwzW+2G4X3G2lV0XdTP3lwOGKKwe X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: be816be8-c00a-41d7-c28c-08dbe1826935 X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB2888.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2023 00:17:23.2401 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: K3FZ0ftXk/OFoJIVbPVYkVsytXtm6mwZfNq/7LrbS6S8LfFsk/f9phC0t409cOlWIfjDYGO5tPHA3XRxwpxcAtoKM/6zLdzZ0BhAaOWMh4c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4561 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-09_17,2023-11-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 phishscore=0 suspectscore=0 spamscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311100000 X-Proofpoint-ORIG-GUID: mOnfBikpnuUBlizVf3IwGk_2pAV7nJNP X-Proofpoint-GUID: mOnfBikpnuUBlizVf3IwGk_2pAV7nJNP X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782134080240684599 X-GMAIL-MSGID: 1782134080240684599 This patch fixes the pseudo-c BPF assembly syntax used for *mulsidi3_zeroextend, which was being emitted as: rN *= wM instead of the proper way to denote a mul32 in pseudo-C syntax: wN *= wM Includes test. Tested in bpf-unknown-none-gcc target in x86_64-linux-gnu host. gcc/ChangeLog: * config/bpf/bpf.cc (bpf_print_register): Accept modifier code 'W' to force emitting register names using the wN form. * config/bpf/bpf.md (*mulsidi3_zeroextend): Force operands to always use wN written form in pseudo-C assembly syntax. gcc/testsuite/ChangeLog: * gcc.target/bpf/mulsidi3-zeroextend-pseudoc.c: New test. --- gcc/config/bpf/bpf.cc | 18 +++++++++++------- gcc/config/bpf/bpf.md | 2 +- .../bpf/mulsidi3-zeroextend-pseudoc.c | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 gcc/testsuite/gcc.target/bpf/mulsidi3-zeroextend-pseudoc.c diff --git a/gcc/config/bpf/bpf.cc b/gcc/config/bpf/bpf.cc index 63637ece78e..a0956a06972 100644 --- a/gcc/config/bpf/bpf.cc +++ b/gcc/config/bpf/bpf.cc @@ -763,13 +763,17 @@ bpf_output_call (rtx target) return ""; } -/* Print register name according to assembly dialect. - In normal syntax registers are printed like %rN where N is the - register number. +/* Print register name according to assembly dialect. In normal + syntax registers are printed like %rN where N is the register + number. + In pseudoc syntax, the register names do not feature a '%' prefix. - Additionally, the code 'w' denotes that the register should be printed - as wN instead of rN, where N is the register number, but only when the - value stored in the operand OP is 32-bit wide. */ + Additionally, the code 'w' denotes that the register should be + printed as wN instead of rN, where N is the register number, but + only when the value stored in the operand OP is 32-bit wide. + Finally, the code 'W' denotes that the register should be printed + as wN instead of rN, in all cases, regardless of the mode of the + value stored in the operand. */ static void bpf_print_register (FILE *file, rtx op, int code) @@ -778,7 +782,7 @@ bpf_print_register (FILE *file, rtx op, int code) fprintf (file, "%s", reg_names[REGNO (op)]); else { - if (code == 'w' && GET_MODE_SIZE (GET_MODE (op)) <= 4) + if (code == 'W' || (code == 'w' && GET_MODE_SIZE (GET_MODE (op)) <= 4)) { if (REGNO (op) == BPF_FP) fprintf (file, "w10"); diff --git a/gcc/config/bpf/bpf.md b/gcc/config/bpf/bpf.md index 0e2ad8da5ac..522351a6596 100644 --- a/gcc/config/bpf/bpf.md +++ b/gcc/config/bpf/bpf.md @@ -184,7 +184,7 @@ (define_insn "*mulsidi3_zeroextend" (mult:SI (match_operand:SI 1 "register_operand" "0,0") (match_operand:SI 2 "reg_or_imm_operand" "r,I"))))] "" - "{mul32\t%0,%2|%w0 *= %w2}" + "{mul32\t%0,%2|%W0 *= %W2}" [(set_attr "type" "alu32")]) ;;; Division diff --git a/gcc/testsuite/gcc.target/bpf/mulsidi3-zeroextend-pseudoc.c b/gcc/testsuite/gcc.target/bpf/mulsidi3-zeroextend-pseudoc.c new file mode 100644 index 00000000000..63d63142708 --- /dev/null +++ b/gcc/testsuite/gcc.target/bpf/mulsidi3-zeroextend-pseudoc.c @@ -0,0 +1,14 @@ +/* Make sure that we are emitting `wN *= wM' and not `rN *= wM' for a mul32 in + pseudo-C assembly syntax when emitting assembly for a recognized + *mulsidi3_zeroextend pattern. */ + +/* { dg-do compile } */ +/* { dg-options "-O2 -masm=pseudoc" } */ + +unsigned long foo (unsigned snd_cwnd, unsigned mss_cache) +{ + return snd_cwnd * mss_cache; +} + +/* { dg-final { scan-assembler-not {\tr. \*= w.\n} } } */ +/* { dg-final { scan-assembler {\tw. \*= w.\n} } } */