From patchwork Fri Oct 13 07:28:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Frager, Neal" X-Patchwork-Id: 733193 Delivered-To: patch@linaro.org Received: by 2002:a5d:54d1:0:b0:31d:da82:a3b4 with SMTP id x17csp1330695wrv; Fri, 13 Oct 2023 00:29:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEAbojLldU0ukiADxoV+k4HzcyJzuDmtCXi7I20hMj+Q4sE8gg80b8OlSkY78s0zeTQR425 X-Received: by 2002:a0c:e254:0:b0:66c:ff4f:8963 with SMTP id x20-20020a0ce254000000b0066cff4f8963mr7976884qvl.35.1697182159603; Fri, 13 Oct 2023 00:29:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697182159; cv=pass; d=google.com; s=arc-20160816; b=WTtSXK4n8P1Cast7juahATHOQMuXemdVUK5WUagNLaZbHtxEPGIxP0rbySGQlM1dpD uj5rafXo5l/wAPasly+421LwNb7AIL2XrTkK/c8wLodVENygT1ro6RsiDaCdkGL3t4yx nuPYFl6NbinBCC8xpnvZHSkt8W/lI0D+bF8/Z5P5E3F+/tEFRQd0WV9iYkI94UO3T3O8 41c1c7VeiTUbwK/wRn5eHKSqfw8JJpixg+bKFFRY/nU0MlU9lJPg4QkrNFeQ9PrIXrcO VtYS0kCubO4FN9BsA1gq/4mIrgblm9jc4JeuOP6iwkQw0nB1fpaDa7S9t3End0EziG2C /mbg== ARC-Message-Signature: i=2; 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=Z5+XHz0Rc5F0ejQNZzD/dnz9mHtWM0uJiMcmzRYJC8E=; fh=VJdOi4UYf8NUzv5HawqGoczQY9wdGPsDGNqBKKba1+k=; b=qZ4FukIBvfttuB3NAh8TwHunJU243ymjff5v6s1+kL0fRHY+cWFKrQrUJgB5tKc01c GcyOuEVKzyWdDgFM5L//lJJbkkWK6uMuqBUzNe0Kw8q9soDiRyAEHmSZ7jTiptRK8hPI FDB1WLP0sarnItXUfZgDVSUleGCVb/e33lVD4WmBpdJZ9B5A+86A/b46n3t8wtV86pjF c9n5rsGUkjdjUtnyvGEeyCQuMXaLfKheCN2kwNbd6B9OFZqWurpOTKNGsLwTYE0zDhX/ w9uycPIBxQABJyeD4+v8KsLsikU18uI0SDLxmS7CFq4Xqhitxd1m8Y9HAkcoSjcmkCEo r0UA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=biVg76hi; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of binutils-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c22-20020a05620a0cf600b0076db04411e7si780456qkj.419.2023.10.13.00.29.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 00:29:19 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=biVg76hi; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of binutils-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3F56C3857707 for ; Fri, 13 Oct 2023 07:29:19 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2072.outbound.protection.outlook.com [40.107.102.72]) by sourceware.org (Postfix) with ESMTPS id 551533858436 for ; Fri, 13 Oct 2023 07:29:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 551533858436 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=amd.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UhNiwUwd8VnZWIOerf8aIMK7uTwGsfyHL8943ECuevSANcjTPD1uPpxANYXR9DIg5U2U6RLbUao/7EKd68+vFcBjJK+6n+dnKUpa1e7F9vW/q8YQjPM9t1v3HkrJeATrYwIscJys0u202YDTAzPmeBVatn0yBzO/BbyhLcmS3ld6alIejONCrr33MorGNliDzMopbERTHyhWZd1Vzzcwmc7+xITGb429f4s4Hb956VMP4e7jERQI5idk/Jv3GSVtSf8Yo1B6vba/xvCr3Gmz8FzFqBWCYwKzCHUP8t1YlSX19fgryDFX4Fvu9UcMiVc1/GmkjIXFC5LDmELxuA5uTg== 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=Z5+XHz0Rc5F0ejQNZzD/dnz9mHtWM0uJiMcmzRYJC8E=; b=IwodcrNPk9Qujw8/P1eMVfgjeOnx4IgrOPmC2+jFIhjyP6hjk2TG2vc7OKYVOSNUDDq9en5/kT5xi27hpX41ON5qBZVuqmfRG/cJfANHX0l26Gm2rKhngD6Jfx1Nstb8+ei5ze7EMnx5ruAqWcj4c5Gj/6hO1PY+hzZiJXN58hd1Q4lgxFLVifKNHcWMZ1EtfLZ+rPJutSNk530vRDzI2WUfsl0vzVpcbMqioUtCmTQdCCHn526wZmWQuGTE/Bct7zVc+26hW+IUaoxjdb5RY+/6zbjTypRg92duCh8grPrGvie19x/Te6GrOpX8oN9yZVxPhgTKylHS2hcwOY1+AA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=sourceware.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z5+XHz0Rc5F0ejQNZzD/dnz9mHtWM0uJiMcmzRYJC8E=; b=biVg76hijFpcZSt3m4uA0SA0JOokNtacOPQQSUTEsVXykYcKNTH8hg/0BYPCDPUsvWViwPeuQEhDGKaZm2liqsFuVP73z5XjVKEEmFsE28mKc9N1dvVndwlwd1d5zVunX12XbwCjo3TM+1dgY9NDCZLp7mfo7kczY3dwffrUSzg= Received: from CY5PR13CA0047.namprd13.prod.outlook.com (2603:10b6:930:11::29) by BL3PR12MB9050.namprd12.prod.outlook.com (2603:10b6:208:3b9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.45; Fri, 13 Oct 2023 07:29:09 +0000 Received: from CY4PEPF0000EE38.namprd03.prod.outlook.com (2603:10b6:930:11:cafe::3e) by CY5PR13CA0047.outlook.office365.com (2603:10b6:930:11::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.28 via Frontend Transport; Fri, 13 Oct 2023 07:29:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000EE38.mail.protection.outlook.com (10.167.242.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.22 via Frontend Transport; Fri, 13 Oct 2023 07:29:08 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 13 Oct 2023 02:29:05 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 13 Oct 2023 02:29:04 -0500 Received: from xirengwts09.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Fri, 13 Oct 2023 02:29:03 -0500 From: Neal Frager To: CC: , , , , , , , , , , , , Neal Frager Subject: [PATCH v6 2/2] gas: testsuite: microblaze: Add new bit-field tests Date: Fri, 13 Oct 2023 08:28:56 +0100 Message-ID: <20231013072856.638728-2-neal.frager@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231013072856.638728-1-neal.frager@amd.com> References: <20231013072856.638728-1-neal.frager@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE38:EE_|BL3PR12MB9050:EE_ X-MS-Office365-Filtering-Correlation-Id: 3871a614-3cb3-492d-f5f7-08dbcbbe16b4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Tfy3EeUSZ07KZgqwf3tG7413m0rdHda89lHCRaOr/EirL16DbhHp4k9lPChqCJjmYslO8RTBAfNrI+yLrSWLs6wFb0baqeGLEitADZpFyP34EwiStPEbouqJXDYs7fMgdFI+Mon4yfz5impNVlBw4HFQDr8uPwDmhyaOIzXif72eNSluK5ilhAI5xEceR2R9u28Cv7J5lJIARyYRAW6PpcFt11ysTV9hp250P4ahAORHWnbhxUDaX4aDHVvFtlzkQhzmpJ34cC6YSNuSIpemHdim6nf9Q2p/9iDUHb42upIpxm8bMI1spNb8PavgB9Yls1yeJ798EW2d6SMxu+ghrsCKHk8AMCMjW2nAFxk29GbH4h/Wyx8ukHGTHUKE1ybus/TdlYf4aDml3kozsJwueV2O41VzaQ7ydZso1pRyzLSNh7rLX7luS9v2fvyx67zMWIKwMGBV+NR/fikmsnDk4teickwrBDGWYBiz8IoFJ9dLy34XSKiVqsXdZJ2Rqr/62fbwwMhXgVMT/KvkBRSfWEGnsIv7RQi77y1a6jEkfN/AF2vqidDYTeF0Fp3xyxIXX7r0ukWDkt/7UronE6o9Qdpn1I+s5LZT1ivV2zjNqKHMlL6g7CtyyuPkgR19cyIb7ONMyTzqY+QCc/TsUlPZVMGQTUlUHW5es91sWrOHPPPaKaUmqkMbMc2qDF5wj9KscR5jO7SMkRDFUSHKmK1KroZMIPQEUG+SVUiCJIA6oalv+VfFtEHobAKj9t1C5UpIEmMkJ7WDOLi1TmMZa+4FWQ== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(396003)(376002)(136003)(346002)(39860400002)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(82310400011)(36840700001)(40470700004)(46966006)(8936002)(44832011)(8676002)(41300700001)(4326008)(36860700001)(5660300002)(40460700003)(83380400001)(2906002)(36756003)(47076005)(86362001)(356005)(81166007)(426003)(26005)(2616005)(40480700001)(1076003)(336012)(82740400003)(6916009)(316002)(478600001)(70206006)(70586007)(54906003)(6666004)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2023 07:29:08.6990 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3871a614-3cb3-492d-f5f7-08dbcbbe16b4 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EE38.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB9050 X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP 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: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+patch=linaro.org@sourceware.org This patch adds new gas tests for the microblaze bsefi and bsifi instructions. Signed-off-by: Neal Frager --- gas/testsuite/gas/microblaze/allinsn.d | 6 ++++++ gas/testsuite/gas/microblaze/allinsn.s | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gas/testsuite/gas/microblaze/allinsn.d b/gas/testsuite/gas/microblaze/allinsn.d index b454fdb30fc..312e3fb3805 100644 --- a/gas/testsuite/gas/microblaze/allinsn.d +++ b/gas/testsuite/gas/microblaze/allinsn.d @@ -47,3 +47,9 @@ Disassembly of section .text: 00000040 : 40: 900001e2 swaph r0, r0 + +00000044 : + 44: 64004041 bsrli r0, r0, 1 + +00000048 : + 48: 64008041 bsrli r0, r0, 1 diff --git a/gas/testsuite/gas/microblaze/allinsn.s b/gas/testsuite/gas/microblaze/allinsn.s index ffe91ca8eb0..98df189bef5 100644 --- a/gas/testsuite/gas/microblaze/allinsn.s +++ b/gas/testsuite/gas/microblaze/allinsn.s @@ -54,4 +54,11 @@ swapb: .global swaph swaph: swaph r0,r0 - + .text + .global bsefi +bsefi: + bsefi r0,r0,1,1 + .text + .global bsifi +bsifi: + bsifi r0,r0,1,1