From patchwork Sat Oct 8 01:23:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38616 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:789c:b0:9c:c2cd:5584 with SMTP id bf28csp292579pzc; Fri, 7 Oct 2022 18:23:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5tuY7vO8Uo606vwDxL3bTXavcy8ftfnhPwYdlGU42B2o3rtADPH03sR1YbzxdUU78Myjl5 X-Received: by 2002:a17:907:3d86:b0:782:1175:153f with SMTP id he6-20020a1709073d8600b007821175153fmr6231830ejc.226.1665192202959; Fri, 07 Oct 2022 18:23:22 -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 r15-20020a50aacf000000b00452ce356136si3701016edc.135.2022.10.07.18.23.22; Fri, 07 Oct 2022 18:23:22 -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=ja1A2yKi; 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 9955068BB74; Sat, 8 Oct 2022 04:23:18 +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-db5eur02olkn2024.outbound.protection.outlook.com [40.92.50.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3043568B353 for ; Sat, 8 Oct 2022 04:23:12 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=exlCya3G6LXZiGrWH8BrzBu43tXT8LZxjoCKmneS/6R8rnsOvRIRsbGMkn6BFHsnBQJaIXtL18QN8wS3lIRJnLUs7ruUbUcpmupeLlsRq4byGfqMZCDIJzBbi/nja0Av32IVvIi8vXd8ir5HL+iSGvQw7CeWCq9shs2GrW9YAXD89uBpDWeHJpidLPNyvSjGkxmYuufkgcvrtAz1x+bVERlo7CWgJFZG7zxHlDe4P6uk+u2ol9JrrCzdPlaah1W35RKqrMUxciE3Qks/aaqgMLHrIqj2dRKpEM6tqDOmHERUEd23jEKu3ECqK5+A6y/oxBRESwJazjRE4ajtWsHucg== 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=UCA/zZP4iSyxjx8hes4nHGU32c6xozpqovOtmcaD+EM=; b=jSTECdiS0xVIq1gASMxMyWPmY4gveYGgKF2KDeAct76aGQAHBhSvBHJUBTR5l8KovN5KV33LZJ//S3t8EpmhCnpSl8Ue/seZ/Lwm+o+lKvsDMxuqGWpbAUU2z6SvZS4XZ0urcX2PIoxpie3OUh4WtMXPX7BwPckqbB9MRZSpwh7kjszFNihQ8vOVMJjChecbL3LMK3IvlJZ9H65PNxj9WR448cxcMDXhQcf4/ob8f9eWa5+3shXt4uenJnub0MSRt6oyeFx0wjclwqcEJ/O0tSM5ZbSIjiVD11yG1vZDzO2VlU0wl3/FpESkoe8HIiNOXkqaYPfobAQupRtNe12+QQ== 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=UCA/zZP4iSyxjx8hes4nHGU32c6xozpqovOtmcaD+EM=; b=ja1A2yKi53RjBOBBUokMmV7zf6DYp36vMVcn0ZOtcJ56ZmZoj5x2XPAZZDGU2KMw3Feg8JLPuvOp+EwlKW66tOMIbprGwKRM1ELdSl4NOx37xA1gGyz2rX/GFzTlx6jD+ZBTnlQM1PXESXiE4KGYGvJriDRWtX98+eXXsytnGvpCpVji90HvaezSHchF9zdOsGEizjzKYVmBblaHsYI0njtiFhDjoyHjvSLNJxt1YNj03Ww/EKlcT0fzIvW9KmP/tteQ3UK3B7+R914NXdsMdH8Y3zcEFLORgkN2hHj8wo0GHOFMso6nn/k3BqfclIjP/uWU4/3y13IV72upfjGIdQ== 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:23:10 +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:23:10 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 8 Oct 2022 03:23:03 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 X-TMN: [9WaQ/975qRdNJj+nLGC5Udh0FL/Obcp7cJeTPPvPtGM=] X-ClientProxiedBy: ZR0P278CA0094.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::9) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20221008012311.309475-1-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: a6a553f1-d0d5-4d5a-45ec-08daa8cba950 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmpXYlgiiriwpqBJSiirmy7K+k4H6GtwpE6jRqkApit/L8il0UjWlORmhbq1ASJuHwTNSzUONdm9RAOQX+qMmRWcgbVSAL8zUFel43cOW1iq1mfjLos99+PLS1Do1MPqcOappJnZc9f5E+2AXgGx4HV67vHXQcKTBHhOyNpAmVb1RT8fE1RgfRAEhVXwCadsoilpnENd/Isxx8rgGJpTG5bPM0zZZj0rbZZSVsHNvdRd00uYkYWDQhOHLVFslRzqBjrAs2kgm7f70g7SWaG6nubu2kd8aezvEwtQG+qiFrJ7wB8lt73dS9wBDTGXN3JYTRRtjQt5ruvyDK7cxCIMA47/R755zxP/sux6LCh07ScFQqA36kWu1kJmOGUzm5pDaCKlsnt1zxaI3xuURNolHiXUmReH0015dw2ud5/TUBVwegrD128+8qwN0RlG2MEUmw5cwB94AoT7x4rn/7xigZCNncecCDkh4FwnKv2sk60nrvq9Cmmp0SupitHbPRnlhTjhblcRf80F4+BOkW5tHZRm0Da4fyVPg0xyvd3fNoonRp1/CSyQ24JFYgvv7T6YinIBT2IpqOzpo+qhuERvX7tr8JddBHzKGjs+rg5EHYLmVpvoU6cWkVD19dzCKCe5eRQlpi6y6HL/ni9+04epkBqyFskYu9ghvG2Mhtsf2Gf7fd654OT+As2sQQFviJDIbXOLlCCyNw1HTlzAUHdI2Jik/QgqnP5OW6Ma7qyNG2k/DriMLUJpz6rttH2K1GY7Z4k= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jMh7sRQiERYFoCRaogeR6kGnR9Xa7L18V29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change-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2022 01:23:10.0971 (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 1/9] checkasm/vc1dsp: Use declare_func_emms only when needed 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: 3JJqTzLXScJG There is no MMX code for vc1_inv_trans_8x8 or vc1_unescape_buffer, 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/vc1dsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/checkasm/vc1dsp.c b/tests/checkasm/vc1dsp.c index 52628d15e4..570785776f 100644 --- a/tests/checkasm/vc1dsp.c +++ b/tests/checkasm/vc1dsp.c @@ -261,7 +261,7 @@ static void check_inv_trans_inplace(void) if (check_func(h.vc1_inv_trans_8x8, "vc1dsp.vc1_inv_trans_8x8")) { matrix *coeffs; - declare_func_emms(AV_CPU_FLAG_MMX, void, int16_t *); + declare_func(void, int16_t *); RANDOMIZE_BUFFER16(inv_trans_in, 10 * 8); coeffs = generate_inverse_quantized_transform_coefficients(8, 8); for (int j = 0; j < 8; ++j) @@ -404,7 +404,7 @@ static void check_unescape(void) if (check_func(h.vc1_unescape_buffer, "vc1dsp.vc1_unescape_buffer")) { int len0, len1, escaped_offset, unescaped_offset, escaped_len; - declare_func_emms(AV_CPU_FLAG_MMX, int, const uint8_t *, int, uint8_t *); + declare_func(int, const uint8_t *, int, uint8_t *); /* Test data which consists of escapes sequences packed as tightly as possible */ for (int x = 0; x < UNESCAPE_BUF_SIZE; ++x)