From patchwork Sat Oct 8 01:24:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38619 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:789c:b0:9c:c2cd:5584 with SMTP id bf28csp292861pzc; Fri, 7 Oct 2022 18:24:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7qhJlw+vyCo+GTBs+Mp2abtAzQsypgxkYvvE6xAkhCSYq2iImilUVkAfg4qtGFpwbPsJKX X-Received: by 2002:a17:907:6d2a:b0:78d:1f82:dd5e with SMTP id sa42-20020a1709076d2a00b0078d1f82dd5emr6225988ejc.615.1665192276189; Fri, 07 Oct 2022 18:24:36 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id sd28-20020a1709076e1c00b0078d404c3e45si3974468ejc.518.2022.10.07.18.24.35; Fri, 07 Oct 2022 18:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@outlook.com header.s=selector1 header.b=A82w4eCv; arc=fail (body hash mismatch); spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id F07C668BBEC; Sat, 8 Oct 2022 04:24:29 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02olkn2088.outbound.protection.outlook.com [40.92.50.88]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A6EF868BBD7 for ; Sat, 8 Oct 2022 04:24:22 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QkVShVFkXy0gKiZ0KzH5nY1mn/uBmSad2UihpiDJ62P5ByBBXyEmQW2EBIw5hLvTpGrVQ0HAieUex89fZf+M/4PYvS1GwmKRgKCE4DEtNZLmDFWcltI/jkD58y6iJmRk7/PKkmDVCRy2zURVKGDadvq44FuGUjFf872T+zG2cKE6eht3hpi/DxlDCsz5LT7y5GfkLbjjmpVDOmE3UPhiej5iNoLizFLvsZmP7IipHnvq1tjHTcU8ScmXzxP5WkF5EqJc7E9nc1MkozPdcsjYF2d6S40/pXLB2nd3PHLJje6B1E67AwS3rRMJhYY8pAkJx6M+I6rIW5EgoCLaptmggA== 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=gEacbJ+WFiB3+59SCF5qHFy7qZNasrhAMbzJk7NYISc=; b=OMX8D/3GRIIEhoT0iA6twYAI1t99G5pnX5wb/N1hr3tAN+QXid+w6NsIPnHXVBoSyUN+v/kSk5Jg6r+9AvUICUENMwLJvGVriT8zAcioBX1NE5AIzg4uztIQvPNnftjOM7BjkDNqjJ+csVu4Qw+6LbUC5DtLE3FeMvDB1sEokbZk0k/YyGxwsQgUV6LamAZb12tj2XNol5C7DEJA0KvIryX5KZK1ppqqb3wQqAu9CfJQqRcAUdcfDCzOoxase/X5+g3MzLXeEZhw9psef/Z6JIfEhhEJpzNumXdOg+2FMiun4t5oC4lbrtNPv+GnEQNH84cKJeorOCOfi6vnlUf1aA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gEacbJ+WFiB3+59SCF5qHFy7qZNasrhAMbzJk7NYISc=; b=A82w4eCv0Wic2gARmFEReYAo3l0vcf/85JYd2XwwWScY4k2OO/GLjF7+pulSMZM4cRABKDlSoQaQAcy5WKwgHfrfeX7KOVsxHsWHSsICM3Rvwu07NChYG/XJ4dQaDnDesNz6EE6ba6efoNquwpX29/ylMZIMcjOGyye7lszE7x/0lNAHaj43Qq7fRX4fdyr6dh3MC0r6apF/nxYxDyyVNdzDzFTb+7/laAW9blosUX/71Zy8sadIAQqI7fNIdO0/uNeNTt0vY3M1lI76W4HpppfAizgtEmxPlSoRAVke42lrJH72b9X2MhejDOvj4rNknY+80z/D5+5Q2nTXPyy8ZQ== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by PR3P250MB0098.EURP250.PROD.OUTLOOK.COM (2603:10a6:102:171::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15; Sat, 8 Oct 2022 01:24:20 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::68bd:2fc7:ac52:38f8]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::68bd:2fc7:ac52:38f8%9]) with mapi id 15.20.5676.028; Sat, 8 Oct 2022 01:24:20 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 8 Oct 2022 03:24:07 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [nk5IX3JQaz17dWT7CYQ+QF/EVhea5eoF1J5qMh7plyg=] X-ClientProxiedBy: ZR0P278CA0074.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:22::7) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20221008012412.309522-3-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|PR3P250MB0098:EE_ X-MS-Office365-Filtering-Correlation-Id: 24e362b8-8e01-4a6a-666b-08daa8cbd33b X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmpXYlgiiriwpqBJSiirmy7KWJ1mb7f/YebSRPqOf5NnQcz9RE8yeveXo5A7ebb/6KNZkFnTnSGvxPeV81dOucYBmHPmH6IfkjKQE/15eJnbgC4BS8ilfJAeVVC4NUw7+FSo+0Nz2dmtY/Yuf4U0HdSxvxCdn65kf2kW8zhdSU/+HJnzAAUBV/kGV5I+55yNleehEOlzAxFLmEt1jRjtbJ03Eq8iZTfpRrEWkH0hmB7Yqt1/MMxiiqtJ97zWW7weAzY5gD8zmVJyBpv4nLsIgO8njA+3pLgZfF7qEJ0rVC/2wVfLfEEr4hHU+pOjGpOpDzP3nLvKukaNQrg4/2wugLiKaNzA8t3wUkzSJLXBj0+kL7KoLZHC2TI8Jjf7NGVGlguUFUwAJySyHA5wR+esrALAH4wRLikH656+G3T2ZgGkD/8vRa1yK6ufadmkq0Lxx6ruVImS4c9WeT8N3H/r8mlm5gROVbk5xNxNK710XjQt21O6HkQ6pBw4vU39bRCysteYReH+r+tv0WQeRqwlnZI1v59OkPqaSndXHxpyg10hDVWBIfS7apYWIp3i8mf8VN/nBYV274pGaU0zpB4frBJ6RJsYEMqeIbjqN+caExTI6j6sF/Da+9wXLCnHBVvZnMmDEf4kJRgjeLTHIiN9cxNfsbGDsKOsmiZdMRqYy1hTTe3j3m+g3kTc5tLeCRIXUhfPD4KCBk740Sku4jzKsi+VJH//rUC9JyPcrznxlVhc55F5wS4shulnsA2YQuyemqI= X-Microsoft-Antispam: BCL:0; X-Microsoft-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com X-MS-Exchange-CrossTenant-Network-Message-Id: 24e362b8-8e01-4a6a-666b-08daa8cbd33b X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2022 01:24:20.3621 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3P250MB0098 Subject: [FFmpeg-devel] [PATCH 4/9] checkasm/pixblockdsp: Be strict about MMX X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: LCG+4HJQjZxw There is no MMX code for pixblockdsp after commit 92b58002776edd3a3df03c90e8a3ab24b8f987de, so use declare_func instead of declare_func_emms() to also test that we are not in MMX mode after return. Signed-off-by: Andreas Rheinhardt --- tests/checkasm/pixblockdsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/checkasm/pixblockdsp.c b/tests/checkasm/pixblockdsp.c index 9a7865aa5f..3c8599db36 100644 --- a/tests/checkasm/pixblockdsp.c +++ b/tests/checkasm/pixblockdsp.c @@ -48,7 +48,7 @@ #define check_get_pixels(type, aligned) \ do { \ int i; \ - declare_func_emms(AV_CPU_FLAG_MMX, void, int16_t *block, const uint8_t *pixels, ptrdiff_t line_size); \ + declare_func(void, int16_t *block, const uint8_t *pixels, ptrdiff_t line_size); \ \ for (i = 0; i < BUF_UNITS; i++) { \ int src_offset = i * 64 * sizeof(type) + (aligned ? 8 : 1) * i; \ @@ -65,7 +65,7 @@ #define check_diff_pixels(type, aligned) \ do { \ int i; \ - declare_func_emms(AV_CPU_FLAG_MMX, void, int16_t *av_restrict block, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride); \ + declare_func(void, int16_t *av_restrict block, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride); \ \ for (i = 0; i < BUF_UNITS; i++) { \ int src_offset = i * 64 * sizeof(type) + (aligned ? 8 : 1) * i; \