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) From patchwork Sat Oct 8 01:24:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38617 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:789c:b0:9c:c2cd:5584 with SMTP id bf28csp292797pzc; Fri, 7 Oct 2022 18:24:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Z/jccevQ1r2nYqwp6nIjNc94zvE6u4xcyuiYzwkR9dZhF3FieN0adh3SpxVgeI4dbxNmX X-Received: by 2002:a05:6402:3547:b0:451:3be6:d55b with SMTP id f7-20020a056402354700b004513be6d55bmr6966508edd.57.1665192260993; Fri, 07 Oct 2022 18:24:20 -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 nb19-20020a1709071c9300b00782da4ff18dsi3617887ejc.668.2022.10.07.18.24.20; Fri, 07 Oct 2022 18:24:20 -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=WViTFKVK; 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 D632868BB97; Sat, 8 Oct 2022 04:24: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-db5eur02olkn2088.outbound.protection.outlook.com [40.92.50.88]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 60A2468B9C2 for ; Sat, 8 Oct 2022 04:24:12 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AHFMlleGucrg1C5OOdpfz2J2ONE5zsQ48ibF5E1F/biJwSyUEdcVEof6zDPrMFJotQQQbWTVHDEh17ZR5iBQSC2+0xeTJ+hE7StM6NfmkNftQiG69SCfSRD9RWRYBu5d5ti6Wyl84o0ow57yhZZ2jJLBaVFVBUyjIu3S83Z3E3wI5r6mzKi6+61LRzp4LP6TTJevpg5hfWY4ehPfsIBKToUY6VnGhB0a5MIAdov1zKSkKCNWou3e2usyDprDNAOFdngzR2gJWZKwzWu6ppf/1VWSXjxMKcKK5XF9lj5BRtw7YLoLf1g0oRPtdKAD74+Oq9sytbKsfm+TIkD37YCD9A== 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=zC6rrxtzg9XId435an3JBIr2KazClJuyxFrBOPtBU5k=; b=B+6M5h9xz5w1PVfQFQGTCYg9QVHwQm8GifNtoZQu2AmMKDnhX7wj+5h4H2Xxpocy1CMPasM84gc3dIVDwOpiKKaJfBk2IE9xG9KSVgG7HCcVZkOLaBoV5cSUhDwYpEeB5/B+nS7jgP1UMXwbHkwvQWhWpEa4jUNlhhqzOJPUgxk3ko99HdtUkOvG7YNI/kprGjJnwk1U6E5GHypZfgHlbWu8DnIJx0Hc4ij5K6DJflveCdka65DYC2rdtTfedhh7fa2axUr4Z67bgjVM1Bhy41djwv71xM+p/jYJmIS2mrCni2PRJ4NhiHhWb0ltni+t97SPT2SmuRJSObRujz/mkA== 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=zC6rrxtzg9XId435an3JBIr2KazClJuyxFrBOPtBU5k=; b=WViTFKVKRSvcgbuNp7qE/9uqboCgu974YxNHXzbWK0XyjwcF8Gv/BKfltfZ54/B5ftjKzIpSIMe8JhfYJXeFKUs8kZ97qGPByb0A65HJJXxwjEoo3sFbGLrKFLHSV/QdYJEX+my18QHEr80TpT6o7F5Kw26k9TivdwUvyZj5TImQ4fmsUhAjAR5zxpgKrEk31i8rN0Ms9S+Q2VIsOBoKK5H06AfvnZ4pcFJjcyxNZNEYgLC9FTeOE26fun3uxFr5m3raJbZHF6pf2aX5IU9ImFvVInzXlVMnfRV14RPHYVA+cpYgYuwUbZLvEh6dDPRNyVl9CYY4Ak5WrkAgJyLF2g== 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: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:24:10 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 8 Oct 2022 03:24:05 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [nCNUBazaVkqT8/+71/XvrsRRmrKT8Ya4rOEzA5KMw40=] 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-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: ecda4ffb-9926-451c-de7c-08daa8cbcd7a X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmpXYlgiiriwpqBJSiirmy7KaznurW7J5SkNvSBTJJKnRw1MuHqIkaSGleC7/g4n0UHQgimaH2qzYPdMDYjKkl4rVx+xCAb9ABOU+u/8gnNLIX0f4jEYrTUDsRZKda260Prw7IHKv0w2cVx8abeWqBY1m0iRYaJDGq+Qo6eKelf7RrHZ8zds/pV/uzSq3l50TdrMxtMJ7Q1vpa/C7KoJcCz5FXVE4ro75d8m/E5HZhKbQMNCW7YBsDhtf2UkLQd31JfwJG1TgN90hd4dgGLdEdNNYFMadZVKp5c0xtYj2rEEIwf8oAjL7Zf6eBUkV65rtAwC7Nf/kzCimDled6edVeU2pP8ODzvkBuRsQAztDyW0ux+aTbNH9KrJbQz30H2YfDMPIj5rkurzFrnty3PDEAJh7UPeP1WuorvuTpstjL3kyBpOHwtEM5SQ6ounJTUrx2FAidAIToHvIyTqZpDNvrvDUQRtQ/mzYtcxiT0km8ZG6IbM+3U0UPcwxnhkxwPRrOY2IpLUfc05+xgCONmWJRmzQMh6SvaWQEZldt9RrSUkfyOwt0LFAIVdj5ocV0i41WxhTsAF65BVBM7aA1fcHAXsOz2pmpLbMDAv/KloXahp7JYmHQncEQfhmy7hs2/VNX/ic56vwF0r4df7V7KL4TxBK+qw5CSxPgTerg2pKHgzr/743bBQvHIeIWXl9Jm8oHwCjjzGYlHSmB6sTQrcC3Y7T7mAkF+MlMhKPjWrBKvWZmNefGC0XgWMqKZrraUMRj0= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P/Yn7bdhK79MTCLjGSCPQizprKXvaMkhqo9Fjxy9wrsBHGU2YeR2GkVfpFx7UFMLJjwYXNcvaen4m+vsal2I+M7zGL5BgnvJIR+9ubtjFzImi4aiSqT53y1KDYdiYGG91TQJQDX2CRRvv02fuKV3dryzbOpkY0J3fqk2pzWuCDwKkrvUNRWY2aXkg6RBzlvqCWBSupiS2c1pvJf2RR52nGb50aQI/E/bIRr1XH5OyWXOUQjIayHJjX/YfhfOe7j7y4Ygj8krnZfx/GeeYh91t1QW/akm2CeBk4MD8eGCaOpKkXNxzjMfOVmD4lB4g+QCBfhkjWGmfcyMXHV7KJkTLB1jedL5mkwupHTaWqBLLqM0du6aBKYpT//n9r7tO6d3p/atEhv10yfw8CQHi/imRRlooOb7gjyxY5jaR7TEmOL8oZgccsH4sFD67Ia9ZI/CM2UY7ewMqv0PRQs34b70eC7pYxSnfo0k34POWmil78LxqJXKK0bWIITQoSijEHh027ytOFSlL3uPuYvkWIOsbR0oWvZnoO83yMRip3ZB5J1xNk7/4DS+mFyyQ7F8Txk6UsP/uPygPNpptQ6nimF0yKrwBEh721nAGa8xP3ZUcM0LoP4m+SnWMcjITecQlxMPYk3gbS1oo1vGskvMFuhVksvmzMwushcRiKhBwdHYentana6O/+BdrfKV0HM5wRyW X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6WbVFb6cggO6yKD/XbRUAso6UQlsNw63QflmXG0at+T0ssDBZStFuYJyKaz9WRS0OKCWkOKkixCgxLa3fKPknWkeY5dMsixFaQr3XdaYGAXOyg699QHF2fkb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mbb6JHtdFYnz/PsCyk0C/xwMrOVNkFe4S1Nyz65yPJb8ZA3VW70l6evBYcTKTBXcMGAg+XLfNGnA1c2qj1facTC82JT/YRWUFrLEWJ6AZVsYAzV0ptf+TlzVjXiNZtAwwWRzhbPAPd1VcsjC/NBgwnq2LFaFG9dEH X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecda4ffb-9926-451c-de7c-08daa8cbcd7a 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:10.8055 (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 2/9] checkasm/blockdsp: 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: XeE8ZW/Z4Lh2 There is no MMX code for blockdsp after commit ee551a21ddcbf81afe183d9489c534ee80f263a0, 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/blockdsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/checkasm/blockdsp.c b/tests/checkasm/blockdsp.c index 99d79209e4..22a2f79455 100644 --- a/tests/checkasm/blockdsp.c +++ b/tests/checkasm/blockdsp.c @@ -42,7 +42,7 @@ #define check_clear(func, size) \ do { \ if (check_func(h.func, "blockdsp." #func)) { \ - declare_func_emms(AV_CPU_FLAG_MMX, void, int16_t *block); \ + declare_func(void, int16_t *block); \ randomize_buffers(size); \ call_ref(buf0); \ call_new(buf1); \ From patchwork Sat Oct 8 01:24:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38618 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:789c:b0:9c:c2cd:5584 with SMTP id bf28csp292832pzc; Fri, 7 Oct 2022 18:24:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6mFxBBJh/alE5POyp+jkA+YwTnA4HlEHs6BZnSdPS7Ybwtdz6SlqF0bmsazyfP0wXzEcHD X-Received: by 2002:a05:6402:27d0:b0:451:b381:e0a1 with SMTP id c16-20020a05640227d000b00451b381e0a1mr6897282ede.4.1665192268789; Fri, 07 Oct 2022 18:24:28 -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 h16-20020a05640250d000b0045927324653si4488300edb.6.2022.10.07.18.24.27; Fri, 07 Oct 2022 18:24:28 -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=CUYObOdL; 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 E8C9068BBCD; Sat, 8 Oct 2022 04:24:24 +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 81DEC68B9C2 for ; Sat, 8 Oct 2022 04:24:17 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m8G1gprcWhTiBxovfdOxsx0TDZLaa+6ivFet9DVDTt3t2zKgwoNQnPwBjdxo1a4SbgKWw9g39NeGVv0Exlz6XlBZOqlIr+bZb7buBn5i7E0EgHJFsQSR+BkuvBpoRDjlt3LpJF88VtzI8QoB/atG8M+fXf9IA/8BFUVsCydrZTKvNWFvjl8Ai8LbO0+GutPDKGk3eDkUI5GnAbcbgVMeqnBmxSqbXhdCj9h65khY0eyMtVgmFq2lNP7iXYgfCzXb05Fwe4FjGG1RCEH4bBNVurPx0nBgUJcridYlZyi0Ysb/pLAFgdsBJH5RN+GGgFvFcifPgeuhMHZeYRJw/nwTBA== 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=uvMwOx8RnyWdgR3yiSmRAJxGeDCFjYXLDigy5fv69wM=; b=XhyOquKnH+VoC4nU+k4GdAQxgB1w06kOy/rbu92hkFeI5nWK1tXLE6P/pLT9GTzwGbdgHJFlA7dX3mLalcKJzjtYVr4u4nS+8Q7XvnYEuyJDmTRnB+uXc6gQ4+v31zV/in+EloXqrpxMRl1ASYQf2k5bCRIta7/q9BvviQjPVxdSeaEgCkVdgEAMO/ucWHPVqij6Frol/v8oOWD+2mKcVSOPY/y63BqIGMYMd3HNpYoSfEHXd6faz01KHvw86UEZ/64BcAyC0uExI2xAXPaA87VudBJ9rOh8Kj/rlzQJFfeELBjGj18OjZvKLYBtme8d5A/QwZcCbew0ifOyeyROOw== 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=uvMwOx8RnyWdgR3yiSmRAJxGeDCFjYXLDigy5fv69wM=; b=CUYObOdLu6Zg2rX4cxg1TPbUUdgG/Jo2Zg4b0MVJ9qIAJTr3Qu3BMxxKHT+WyeCLM2av0LmGXJe//LrrImfmT9HBWp3T1NH2FLYfdwfWX/Oii9K/zF7VpNcQNxeD6mxsIe4LCXEOTNowiwC4uKBS6IlKhrS/tBeV6Gefud+dqYO/JDeHucDRAp6UZX8vAkxFKNyalapqy4u2OxzOF/7a+TaJgjjuwGhlS5VFLlQ/9H5jc5nRGKG9509yFg3bxNESrAKd2bL71CRie/KhJ1g9DwbUTOjUdeBtrismjzOXYwtrvW4DMO2FMT3UT4CXORD61gCfAq2w+6bP5ulvjkTEOw== 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:13 +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:13 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 8 Oct 2022 03:24:06 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [Qm58l1eqL/ENLKUOLpQjDANC0K6IfQK1WLU7ezjdB2k=] 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-2-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: c5173ff5-9d7f-4b37-fef6-08daa8cbcf02 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmpXYlgiiriwpqBJSiirmy7KaznurW7J5SkNvSBTJJKnR2RvW+eTHdQiRJ/8jMS6ru0sWxWIc0jzf7A5DdDWnX/7AYfg1LDDm5MMvVEKT38TjWvLtUhz1NG5MDovN32mAvo30+m5pQDeiRu0J4/2PcnTzOnyv82aDelau5ud3PaLk1AmUwhZ1pMNfsibFclpHp5dBOJIKDV3lTikeZVjRPSc0u5xf1YzwACCgOsvtFhMaw37Lo7HUSktSe1/VDUH2Q3LVhSgct4sZh+qiE+sLeD2C4Aqg0K7ey9oX2/D+DH0i26jlzemG/827Rrtwr0YRMySwfCg6DxdGvlWZq7kabJ/3reAFy02qqLBiSrlugcPP9Jefh9sNpebibrIPoGSM9jxINabDj9GFy8m21xxw/cF66xVKQHNq8iM5nLe9vgSKhq5RGU/ao3ZTNCCrFtah4+gpa0KgIY4qFvunnTPa+w20rj6647uR2YPm9o/3YxlH8R1QkmHVR65vWmELWcQMWPapOAKSV5UbbEg8WyelKISSDni+4NU190hMM89oLjDShI+yZ0RN584rWr1jv5GeTrOCLnnqeXOCsDWmg5OL9tLK4lthZepJBV33WW3sZyQ4J8bjme82m2KGGl0ARgh80lV+jIsGi09Y8oS45gZlvmVeNREBLH+IWmtl5uYZc2ksTMjauLs7X/KHw1Dcl1FoRs+xd8YKWk6JilTEjUicITbwAu+ifYBoXfxxvoLzOttoPIbSiJhW+Q/Gzu7jV1uiHc= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BZhhmgi+lmV5VVaHAy/+MCYwgA1SEB0Hstu/k/x5MrqyvolJd8hjBVriwwJO+mHoWoLkgKe2RYU6GIjQhxq+D1lNaEvIgmoyIkdsxW8UJQXw5+PUSieJh4oWeeaQnLlyO0xC4FSjHOmF6ok/7yTisDBFEMhULCK/T7/hx8SzF61+uXQnUPWcSxIr/IgFtXiOBM6mvTnfTNJJcI74bFbqR96TbV86HkpjNheQwLCyw2mVDMeuwngvJuBj7HfZ7QpJaDmLw+U8mMhzHmut+gAxkWt1Ftnq5JfEge0qkTknTm9wTxsceavil1qP+1CLr2+MjDnMWqbfvB/1YswgFKLM8p7LXpJOHkL35bd1ggAii8Eg683+8PyMnTU6M1OW4oSyVaqAMEo1AXhXoYKoCFgyZoEB0G0PrUUD7F+tXncjj7Zz6iO+lla3ogl5PorSl7XUPUAjQILEwR4/brtjUh3r8v41qifQuGZeAF2+mAhMgN6Xi2OB6Pafp4Yp0f5myWCNJqV1UZ/aRKm7KEuCa/yW/aacPMFfdBxan16mTghiPCrl2T52b+POyYKInTxhUc14ZvT7gN1V5lVrCe0NM9z3CAzVycihvW9uDe6FtrDibtArlHQlzA5g/8eB1KJYiylOF+AhThaeOYlMPzzVCqcYz/hY9yrAgtSOtN8oFqRkYagGADzhObvyF4hv/z2bqrP5 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5XAyYoOD8/nyLnZp5qNS2LLXrSJJoqzWyAJ6S0Y0H1+oQMzRp1TIIo0QkJ8F7YXMncbmn4YKKAR4LQc+cf4ibEkjApCZ/cGmn5Gm5SwvptbSeumvto8jyedMmFnx19ArLATnDdeCTyep7AyiYUmC5uOxxN8LJ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g64sb/ogHXmSD/rxxLjnuQgtxUfBqcw0BXx2VNX2Ew/XMdFWLXE8EH+9TS9HmoSE8YwSqu/6Xec9dbFCQgRW5gtNohBbDiFzN0VJ X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5173ff5-9d7f-4b37-fef6-08daa8cbcf02 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:13.2816 (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 3/9] checkasm/audiodsp: 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: vgZs7+gE9QA3 There is no MMX code for audiodsp after commit 3d716d38abdae1982e84e30becb57458244656bd, 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/audiodsp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/checkasm/audiodsp.c b/tests/checkasm/audiodsp.c index d3a5604299..7980b550d2 100644 --- a/tests/checkasm/audiodsp.c +++ b/tests/checkasm/audiodsp.c @@ -61,7 +61,7 @@ void checkasm_check_audiodsp(void) unsigned int len_bits_minus4, v1_bits, v2_bits, len; int32_t res0, res1; - declare_func_emms(AV_CPU_FLAG_MMX, int32_t, const int16_t *v1, const int16_t *v2, int len); + declare_func(int32_t, const int16_t *v1, const int16_t *v2, int len); // generate random 5-12bit vector length len_bits_minus4 = rnd() % 8; @@ -90,8 +90,8 @@ void checkasm_check_audiodsp(void) int32_t val1, val2, min, max; int len; - declare_func_emms(AV_CPU_FLAG_MMX, void, int32_t *dst, const int32_t *src, - int32_t min, int32_t max, unsigned int len); + declare_func(void, int32_t *dst, const int32_t *src, + int32_t min, int32_t max, unsigned int len); val1 = ((int32_t)rnd()); val1 = FFSIGN(val1) * (val1 & ((1 << 24) - 1)); @@ -120,8 +120,8 @@ void checkasm_check_audiodsp(void) float val1, val2, min, max; int i, len; - declare_func_emms(AV_CPU_FLAG_MMX, void, float *dst, const float *src, - int len, float min, float max); + declare_func(void, float *dst, const float *src, + int len, float min, float max); val1 = (float)rnd() / (UINT_MAX >> 1) - 1.0f; val2 = (float)rnd() / (UINT_MAX >> 1) - 1.0f; 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/MMxiiqtJ97zWW7weAzY5gD8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wYososUqotVLExtWqRV/IT3MOofVkQ8k3/DmRg57oe2bnRtOtwrvnrBIRIT8Y+oq9BBvQsRSKXcGunJTpmqNm5KGQgyGRJA32hV4UvmJLfOgLnm3dT6xT2k/Q5NsTo8T3hDLFN2F/fWxizgTP9avTW59GXZqg23PYzQAxHKx7o5A9fg5ZIdCHWdp1/XIp1ugCHu3zPZMgvpI4ZNfXcV5ML1fWVai0+yuMnjJGwJ1QTTG9dhSPBcevL/szgzrKnxe6sEvkeD82lShvxMcM7EF/Y5pFP6ZXKDl+VVDSKZeILlLcE9Hi5JDYLw4i20EUfjfKtJWnWTKkfqsTFaM9p6Rd2tISPjfbs93feiXX9Fb3iEI3o4NheTPR+DvT6yHBNWWQ0TqwlKO5Uk7h0EAbsmM/S8EIZ+c3guLykt9p0lBaBojR+Zsn+BZW5o/jxc/BLTUUJiS08BDx5pS9J/8Qab8NaZt47Tr6uxQ6ubJtPhH4wzysj2i/6kdkAZC X-OriginatorOrg: outlook.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; \ From patchwork Sat Oct 8 01:24:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38620 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:789c:b0:9c:c2cd:5584 with SMTP id bf28csp292894pzc; Fri, 7 Oct 2022 18:24:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4h57yY6B8gAwc+c55gkNFSgoLr6GOF86Y+YyfaOa/2AnLpv7qBtyY7P6e4RPmDb2W5XWL9 X-Received: by 2002:a17:907:a4e:b0:77d:94d:8148 with SMTP id be14-20020a1709070a4e00b0077d094d8148mr6006077ejc.607.1665192284555; Fri, 07 Oct 2022 18:24:44 -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 z16-20020a056402275000b00459cc499817si4341698edd.534.2022.10.07.18.24.44; Fri, 07 Oct 2022 18:24:44 -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=o5h6AxCk; 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 0C0EF68BBA0; Sat, 8 Oct 2022 04:24:35 +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 C895968BBA0 for ; Sat, 8 Oct 2022 04:24:27 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UfznosCNKW1/liBiml8ZUBxpoC/WxU7y53fZVDZgSr94RJnNLml7+H/X7jPfHjgyCIA1rJo4q8aoNi1AHRg10z03BiubW7SxXyKVirjp123Mvzze/Vm+KKGSEGtx49EWYXl6iml5G/V+/6PdZR97ofBagm8y32aQsbnBFDy2oBrcLrkm2qUty8lFvyqEO+vxcPWLzQHkH2QlBPYx/YLu5seJOzBRfe5ymblq/3zsoI8Q9RdC4XpVFAeBKQ6ypaayZ5IlN/btmChe7CqreoKtgLeu+9JGZVfymte/UuCGmNeYofBjWyz3X4EYYV1eixkpHveDQUGmBxvsXSZ8+QI+1Q== 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=a7Degn/Jsqw8Z382S6lP8AHbJ0Vqll5ELoR0YzNxEm4=; b=QAtFbWwu5Ja06MCWPanKd5S3YEwLDeBxXFs+SSAho322h0VKo15VZN2Fs2h3fXz8t2H3mxGhL+6Vdsw3p0rU3C1q/ml0bwAEC/xHcr2HyhJPRL6OdL9WHfSz/M1sUfM22qDwxZmFJIb5GeTtMMyzB9dLLXYpLJRYP82NFp6OAcb+Z/7pmevcP9/D8GIJUMIWgLZp5/9QB561qjS0ShPmL+eikzZ7o1w+YPiv+fR3kXBNHwUpkLXztYZcQT1h15KHH9U+SrefZ9b9g6dQ1gRCS84Xz0kPwtnkpAXdk4IoFAtLKzqg9d85XFFob1NcnQ8h0aF44qLnNm5vPiGWkr2CoQ== 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=a7Degn/Jsqw8Z382S6lP8AHbJ0Vqll5ELoR0YzNxEm4=; b=o5h6AxCkThvygHVDEtyP3XR0rHPe9YfsAukGMwkpyz3/vYPQC76Zg7UboXCD2pTcDwQnmfcSwpbUoNd+99K5EgZNbSdR/5E4cn9Od5wAMkMSos2dOIX2W1VLyGcrbRUsYyebzxEblQd6hFmgK3kh+zHVK3X00/McNR6LugC5p5ahXUlT092FTcMagqwAIFmIBuGx74jY/a31D5k/sj5Tm7lV6uUyneDWb8FVMbPQxzIwBNofc3YHkJwh22Nh8aqcU8jOwko41Qh64frpeQ0GNDiFtDa0VU+03Qh7EsZMzrb3jg9Ww0p+5nNATaGEiPB4+inMMNgqIuWfXlQNk5Drcw== 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:24 +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:24 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 8 Oct 2022 03:24:08 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [5psCcTmzcLO22/k7n7nY9Lfowd7LtsfXbIQok9WDiWU=] 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-4-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: 1b8537ad-529f-4c2e-9a6a-08daa8cbd5c4 X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ddNSoWSOS+uifTX7Rg7nrjuH8BfAra2uJghOi2QN6Ms91Nw87DIW1QEPDdogMVkx8PqPb5QIQ3waFEMkJ1/hkVY+lzxKxOry7RN5+mt8o4KsrIYAsCs0pHn3IGwXZAG/M+zkMZmxG0UI7Sfnys2nHjpt6UKK75fZWmix1CAVDyN0KHVm2kzSitVwnSE8j7iXjTCf2UUuVaaUW5lgZHUJJ5+bO6r/a8cUiLLs/uOOVxRAn/OrzxCvlmmAev+e/PcV/5Q95Vv3RX3ddxXcMB1eli6dv0aVRee7IJagkgV2BszKqZH8qG6mRem1xO7saNZ7sH+ChH7gKDmOXitx0Q3cqTrizdUeyXeJ7OJXSg3C3tqPs5f0XCCixm15DQHq0QvaMN4Vbk29oOkziADtoHo2sCXWNDRCIWnY693INNGqIX7laW+yluLm6wsgwyk1f2DUabjOQs4HNUSElE/qzu63fpTWFgxSi1YS17IqczM+NVrd4W732El5orhJdZXbmKk/7P0k92zcew+AVyjeVHFPew/KooY9iWmScK3/OotYnMA8Ke87jOryUJgcsc9iBahDA+GlouDB4YT30ERNROKiV7c0V7kfdUKnIq0rgpl2ZeIggZgMRzKud2cyXPD0hfqcZ1n11JipopeM0UZfQukhBuvv6ObsTUxqSM5L1yItt6Q0mBYD/Oj+OSGgxJvYfRgvBFaJI4ezTEnHLoD6sSDpt7UM2QURwjsEu6qDPYFVYeuvs3UBXEySq+Ojv4VIZ4wj4XpVS0CK3vZSwbMsj+tdbBZEQrMZ51hcs1xwT+5i2z+sFM8C95rNUZs7q6whTenf X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b8537ad-529f-4c2e-9a6a-08daa8cbd5c4 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:24.6480 (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 5/9] checkasm/llviddsp: 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: HrfWNBgvZ+gQ There is no MMX code for llviddsp after commit fed07efcde72824ac1ada80d4af4e91ac4fcfc14, 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/llviddsp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/checkasm/llviddsp.c b/tests/checkasm/llviddsp.c index 66e08c8099..d948a9832d 100644 --- a/tests/checkasm/llviddsp.c +++ b/tests/checkasm/llviddsp.c @@ -48,7 +48,7 @@ static void check_add_bytes(LLVidDSPContext c, int width) uint8_t *dst1 = av_mallocz(width); uint8_t *src0 = av_calloc(width, sizeof(*src0)); uint8_t *src1 = av_calloc(width, sizeof(*src1)); - declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *dst, uint8_t *src, ptrdiff_t w); + declare_func(void, uint8_t *dst, uint8_t *src, ptrdiff_t w); init_buffer(src0, src1, uint8_t, width); @@ -78,9 +78,9 @@ static void check_add_median_pred(LLVidDSPContext c, int width) { uint8_t *src1 = av_calloc(width, sizeof(*src1)); uint8_t *diff0 = av_calloc(width, sizeof(*diff0)); uint8_t *diff1 = av_calloc(width, sizeof(*diff1)); - declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *dst, const uint8_t *src1, - const uint8_t *diff, ptrdiff_t w, - int *left, int *left_top); + declare_func(void, uint8_t *dst, const uint8_t *src1, + const uint8_t *diff, ptrdiff_t w, + int *left, int *left_top); init_buffer(src0, src1, uint8_t, width); init_buffer(diff0, diff1, uint8_t, width); @@ -114,7 +114,7 @@ static void check_add_left_pred(LLVidDSPContext c, int width, int acc, const cha uint8_t *dst1 = av_mallocz(width); uint8_t *src0 = av_calloc(width, sizeof(*src0)); uint8_t *src1 = av_calloc(width, sizeof(*src1)); - declare_func_emms(AV_CPU_FLAG_MMX, int, uint8_t *dst, uint8_t *src, ptrdiff_t w, int acc); + declare_func(int, uint8_t *dst, uint8_t *src, ptrdiff_t w, int acc); init_buffer(src0, src1, uint8_t, width); @@ -143,7 +143,7 @@ static void check_add_left_pred_16(LLVidDSPContext c, unsigned mask, int width, uint16_t *dst1 = av_calloc(width, sizeof(*dst1)); uint16_t *src0 = av_calloc(width, sizeof(*src0)); uint16_t *src1 = av_calloc(width, sizeof(*src1)); - declare_func_emms(AV_CPU_FLAG_MMX, int, uint16_t *dst, uint16_t *src, unsigned mask, ptrdiff_t w, unsigned acc); + declare_func(int, uint16_t *dst, uint16_t *src, unsigned mask, ptrdiff_t w, unsigned acc); init_buffer(src0, src1, uint16_t, width); @@ -168,8 +168,8 @@ static void check_add_left_pred_16(LLVidDSPContext c, unsigned mask, int width, static void check_add_gradient_pred(LLVidDSPContext c, int w) { int src_size, stride; uint8_t *src0, *src1; - declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *src, const ptrdiff_t stride, - const ptrdiff_t width); + declare_func(void, uint8_t *src, const ptrdiff_t stride, + const ptrdiff_t width); stride = w + 32; src_size = (stride + 32) * 2; /* dsp need previous line, and ignore the start of the line */ From patchwork Sat Oct 8 01:24:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38621 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:789c:b0:9c:c2cd:5584 with SMTP id bf28csp292942pzc; Fri, 7 Oct 2022 18:24:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5kFwrrUhUnIGDEynqcz6TME5BDeSBtKMyeKlsmlWgchac4yukP9RDJ36rrNI1v7SudBzAw X-Received: by 2002:a05:6402:42cf:b0:457:ae6f:e443 with SMTP id i15-20020a05640242cf00b00457ae6fe443mr7087459edc.299.1665192293306; Fri, 07 Oct 2022 18:24:53 -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 sb2-20020a1709076d8200b007413ed9efb1si4599938ejc.543.2022.10.07.18.24.52; Fri, 07 Oct 2022 18:24:53 -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=lnhNctUV; 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 23EC468BC0C; Sat, 8 Oct 2022 04:24:36 +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 0B2CC68BBA0 for ; Sat, 8 Oct 2022 04:24:32 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WVM3skCoG5DYnqJrLNpbshlIJOAvRruCpKWZvs3EIcq76zg+pxn3mDAzdZUtN3r2joXNG0LrORJiBEH0a77W+XvY+HB7Tm6seKdQ0yP1YNJ2+iW3QSMu8+0w+PjI/wsMr1aPvzkPXtlaR7JLardAUstpZ9gSaXvaaZ414fhXpdwQCH5l7dPj0hBpfcqg9KERWM+AQXVDrGYi/jT+xTjqqF2BqzjbQ1RjV7s7GyWMHV7n2J1gvRPuAP+D76UbAk0DD6nM0Jd91KI2DRCzdHgSf3g8zVDfSnvWe11GmYHPQKPfcU9r5zD/tegv41IK80F6Hk+1/T5Cvbjmm6NVpLUAQw== 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=dpukYCQ3fJvQGew1+eqABH9HTuPOY3cRCW2kSNI3VWo=; b=hmQqEsOJHwwCJuOGq5I8mAC0/75q4QeTNcNSDNpwCulRC31E8Hpod1DVO4OZjkyxgICbey2acI+oZphECYVirXQw/ed+xg6hxewQrIsQ+Fn/zRJuOvykXVp+fsbzqS9toykwWz4W2iAfnSp7RsWzurLYn1xOuDKjzp1lJkiqw7H/t06LaoUGk9vBNaD9stU9/gKwwjm9eHsmwrWHW3VfimOhK9SzH+42CCWBjvpRrKNNjVsmj7moyS6lLcIFRsVB/Vtw7k+Dbl51hHdqGIZEPl7cNn5/WOUCDqiQW7tovage5D08v81njPModjPoD3O6aQPzc0rB60XkN9ff+FdnsA== 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=dpukYCQ3fJvQGew1+eqABH9HTuPOY3cRCW2kSNI3VWo=; b=lnhNctUV7pO7rkCfMJC+qYiLn2N44zCn2EUyEkFz//Zpn84TRJ67djKvHtcLWnlSzl86nMMvF1VWVK5mmC7331KZHQTtNs7dMiULK8RT3B/pJ0F1ktyGjHdL2JPqukmJIizE4xhFmfvHbDpZ1LaBnXy9r+XJcAAkUdy9fqFZhp7EQibBZ0fhyFikENhiQztccOSWM0ukhBg8xTZEccQ5AE49xz2CdgL4/hsHrXOaTZFe9Dp3YFsmMAScYOpd7Z4wZqrbvMZZFpQr+cXmhdV2Z8Eh8piLIbichl9I1BiHMORIm3MA0DbJvEqnh8ETAuK38XuIuIATe0Bb8DXYHuYs7Q== 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:27 +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:27 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 8 Oct 2022 03:24:09 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [SLSWlgd+F7nlWSFqb0L69e+k73KGAZJPyj/LUgrCMfc=] 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-5-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: b005e1f6-febc-41aa-45c0-08daa8cbd71e X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmpXYlgiiriwpqBJSiirmy7KtohALCXuHnSW12Z6qljlhKLo1ucMgYH63PtecvlSs6j4/TdAiN27Lz5a6MilzhSmnMlhyq76hgC1UxEFI/U6LsGjlCUVYffAMc29gwBNmVq2bV+z3ADCJHOSiGLyq7SjgjcX5AJPEJfnQ4y7/neVzDpw+b5SxXtS0wC01Yk1W9AWRzKPzK2Gz5gNgy4BMVmGV0jikoD5IVT5WuO/ng1ZPaIJcNjtgh8eDlrRoH2VO0tiUJEXBPfx7FTUt+6X1spd+c5EklELbqXggmr+suVFV12lCuXhppw0aALfUe2ao1DuHktNVt1CGK3xS6j4j9CjwMgY7ackQo+l9QHzNDZBds8GVeqlo0GZeqrNM4BV8ld0mwnLO6shckslFCseD+lSLE14zJo0oXImaKKapxdOBobCRgNq+GnHSXnii3C6rwYvslTf9Z5qOrOXKcOHqy/MeYTtfQ4ZY8mgRaAVq8HhnVhPxtQikkFw2k3jFQjEDUs2IT0UXwB/jLtk0dAfjMPRpGf0fh3BuJS1gAlBbv9wu8pb4BPtTMORlZvcS8RHymSRUz/DXXJ5M42gV02jcJ+pTmVDvea13EUM2zziXWmd7mwOcwAf6bvt/3EBU0vRXhLNp9kfyapLWfGnijyzoPKiJUgfDg8KD1rPTc+Nvd7s6FWRy/Dgn5dGYMIRGcafLBl5sB6Y6rEaJeGv5IOy1UbPOqw8RrVCp/agrAVX4gXzrD3bNuB0dMILim6GJ+X8ObQ= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: STo8y8KKtAv+BS0cHsZXFwxdaikDVIkX7XoCZ2GYWTX+twbUs+m/gwiE69Z+UtqE8xFqQA5ygmozOPZ/1P2pOtDSYopakPNV0uYB2+3mW51sb6DG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g2oFMPyU61YQUQ7uJJEaFQ6pxwjl3KoyeiLYxbN3oupLwo+8k0aPyqRNX8KtELdjEWjg/0e2rB6qUMUmTsTYr3LvpXInMchtviGzwMgDAtTvNSERQnqcv3fptPLII7tJdHl10mY1i7mjQgtW79ebYpVgymXH3hGpqNIMJsc/gfbsnYwayXTxneQAYQMpPFOIubRa2A48hKs4DTqvk15d0P2DSAl2GRee9ar41Gb8f5IKS8a6j5C6r/M8Gwq34Rq3YSDAELUoxlR2Y4y3e72pCtaW4gzpqcc5p4XqzDGS5phxiogXTJ/S0psXVefptoiK+8A76f5xM+MEI4km/JhPjVhp6EwX+u86vXczzmp9U6y0c7KZ00P07YlN7YkGZjUmMc7EkZySflz3wEZkN8dYIw15fEIqeZLsQNc9a8KiEhN9Igac30u1NRK9FuCCFScpz+9k3YwPIeY1FhW0a5qNRBO2/2OuP461+SdmaPyoEKr0xXAhFHGX0QEjSY9sAQnYcrvHL9sxPM8lsdMMRmMFH47rYj3moR8FjO8J5PRtk7NVVcPjfSVY/jyZxcZleg/0sJDU9136wH5Mb52RaJyxSr+/W+xXj2+qn8MyPSQeGXquZk3eqz5M3zJcPv8oH0BiPSA2VWbhJ25NV7V21duYvklHTsOQ1D/ATyeKfdpoB8hqwanMeWwO4stkFcjaw5LW3+lglef6gslvcAJRWcYubPcwrEHXHJIm6QSXwrPfttRImf1ECrsNB6FX3SQQvPLGfsAAX67zLpPWMdnI5zyJ/RTYfaN8BZr8Y/B9nPhhuAv6cNDIaQ+V0J8W2arj238qqHLt16vwRX9TyLHkeToKxw8X3JXPjyspz7Xub+BNazJXRGNhHCjX6/Tkb8MVCcXSC2RmHCtl8dnLZX5gZ8j9JEi X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b005e1f6-febc-41aa-45c0-08daa8cbd71e 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:26.9457 (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 6/9] checkasm/huffyuvdsp: 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: hAL29Bqh+iWV There is no MMX code for add_int16 since commit 4b6ffc2880e33d05ed1ab6bbc38e5a795f14b504, 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/huffyuvdsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/checkasm/huffyuvdsp.c b/tests/checkasm/huffyuvdsp.c index 8392022c04..16e6bfb808 100644 --- a/tests/checkasm/huffyuvdsp.c +++ b/tests/checkasm/huffyuvdsp.c @@ -42,7 +42,7 @@ static void check_add_int16(HuffYUVDSPContext c, unsigned mask, int width, const uint16_t *dst0 = av_mallocz(width * sizeof(uint16_t)); uint16_t *dst1 = av_mallocz(width * sizeof(uint16_t)); - declare_func_emms(AV_CPU_FLAG_MMX, void, uint16_t *dst, uint16_t *src, unsigned mask, int w); + declare_func(void, uint16_t *dst, uint16_t *src, unsigned mask, int w); if (!src0 || !src1 || !dst0 || !dst1) fail(); From patchwork Sat Oct 8 01:24:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38622 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:789c:b0:9c:c2cd:5584 with SMTP id bf28csp292977pzc; Fri, 7 Oct 2022 18:25:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5B+PN/9nnYQRWPENPqJ++8flGjUZOdbB1/gYeCEeZ/QK7wRsF0L1mgMaOoqVoSgFYfEFb1 X-Received: by 2002:a05:6402:2926:b0:459:675b:38a9 with SMTP id ee38-20020a056402292600b00459675b38a9mr7111760edb.60.1665192301998; Fri, 07 Oct 2022 18:25:01 -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 p27-20020a1709066a9b00b0078d4b605b71si3175265ejr.338.2022.10.07.18.25.01; Fri, 07 Oct 2022 18:25:01 -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=BHhj9Kpj; 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 45DA368BC12; Sat, 8 Oct 2022 04:24:37 +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 2D74368BBFD for ; Sat, 8 Oct 2022 04:24:33 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TxCMOXIj1LrmMR+gXu2NZ24imviyAmHbrFWEHaEQK6X6e98bA3DsgcSGWBMFMZG6w8/uTfRE66uw1Kv9j9DkTQvI0fJFLECcI6AVm4x1lXZmNowhineqVCovod1hpksfBf21NWHrhPJlHe8gNWVjv+Di0tKwl4jKQ75YMcXkyHkwCpdedyT7YsIDNzxW5b611WnQhfjgaIafdMtdTt+f5z9M7te67azTEYiR1j38IMoAscvb6RKuVZBYtQyglY62CpnjT9jd/GBWD7JLIpMuMjOXi1uKDXKLAFoEjVHW4lJSi0N7WaVqPR3fH39ZfsNZ3FL++qQByxdDlhSyPYB5XA== 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=tFk4uaLTBHRHKrG8MCx2p/9z4/Y+HwCL6tiTItSHZyc=; b=TxnNjd8aOyrkCowbrnX6CWPQFQWs9YWMY0yuVTV2APO87mLjdnq4U7MLUSpekabZj3wjo3O/+FYiIYF+ap0JR+Yl1N/G0fp+jVxt7OsJ/hPnxr1Py52jB34yHrdm60bJso21CcUh9uwR0V2Tzg5IMjWnEH3gtbIEioQn7xGQoTLvt2ZVclNKAzaTyWJAw49WE3L3s9/8peYerjCzf56+Leq3qkGOuZYfZ6hG8IOu8deDOxCB8dm3aIgo7TbD6RJnKfHclzqqUw55emiz8oji0P5l1/DYclYHD3tfqTTIXn9rAB8l7qoMAC/SB6kCzuyon+e0fHdEYhtS64bALqnRnw== 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=tFk4uaLTBHRHKrG8MCx2p/9z4/Y+HwCL6tiTItSHZyc=; b=BHhj9Kpjo7eCjsL3+QADBpZG5IwI2mGAWT1QIio7XwvIJqPhT5AONCgcPkQH2b7ejAe6Cev5QmyyE54f+KzwxqCPlM4Z0Mv0swq9dFngvAHKRujPpGTI/r+vEtnMAppQuiHZJcIW08idVl9qGK50sfTAiT1ML+b4oZIacPupuZEkEMPZZwNMDcG9nR2jLeqF5/9JuAUaUTO8M4lEWMfOpktOGudFU8xMEEPX2D3gmEMYZNlHG5w/LppGY70HXv1zARjhUX5wXOG8ySxHCEpKi6HZJ1ybe1LvqRk4AHtnumPSH1gskxE3bzRae9LYPXYxD9fE60k2I7PD8Ow0/O9QCw== 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:28 +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:28 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 8 Oct 2022 03:24:10 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [/K9G70kdX2tu3t/409f1OYsJJQAC9q+7FkwYIt4Bt4E=] 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-6-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: 17465dc9-5faa-4ff5-d91d-08daa8cbd805 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmpXYlgiiriwpqBJSiirmy7KtohALCXuHnSW12Z6qljlhKLo1ucMgYH63PtecvlSs6j4/TdAiN27Lz5a6MilzhSmnMlhyq76hgBJykFjpCDDAjnLdaAZdhI8i5Muj1zgduWRv9+yDCtZZMofW6eQA8uCf2bt5M8yDrRwWmXq9PsVOheRP4xleKVzT9EzEHkSuuQeCubd4irqHg/DyHD/RswUrxo7FI5VEv8z8/b8cOnt6i90ho17yOLXptCwS4fEzi4eylV2dO0WvTKOLbhqm9it193jdDWVD5Jy3DwGVwWuuv76FFAkUvGUgvzOwLYrDeipaV4OxJGz7i62+qp0rhhmHghjOKhpnyEAsqlj16sN7Dg/62nUXMwC0Ymp39qr/GbRvU42Ad6cjfQXe43fSgYtMSJZmQ30g7ZAa+atl9+eA9dKfzoHRgCCusLu3HoIyCiC+CV+KMkDTKe6iynkQ495cxW0sY0Ytt2pGKjvvBUtguI3ViCS1Xiu+Wej9qMyEbkK2NjTaaDH7Q92y1PfY8WqYvJzdwTZpui0CkHkAvGoxgsf3czhCHblrdzfSUdNqGLkxpRyB91AWe0yHzqgHFz1FTAOX+QfTAfJjKfsCqpeENcWj29f49Jl6u2gPvbsf7S93LG2RsNtGB1xxCsaWOSPzEAg9gOp5D2Bt15qNAeOdYmihpJ5fQzj/KKM5VI4iKtXtJAvCd5o4ysXyBNiwtvicTEf1LgeOjZ/TZiH+FhKjE+ohdW6C3i/EonW2MxUSH8= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: e/F3NnBNY3RK3oIahXHhb7fQ+4o57xMpRWxiCs6IpXb4mfpZRkIH6Dxpm453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LYA7MlrKIJqXe+8Z+IqwEKEM/8k4aW7hCoPPNSWyChvKt1IJpUw1lg8belw0nggq506QPh0rk8F4VfxGWzZg6NwwmQIipSe59dw3A3V4lghwkgo41OILdDWDxqJ8xfE7Gu5FyjTiMBxZyag74gk+rN/V4JTyjNiKliAs+9xz3LcfCxH8gRqFRuuFmuaOO/6rhakeDflMA5klXTSb7vnUtl3g0t/XRCkIKADwIpN6FfWa/p8hIlhy9cFZ7ily5E6hod2Eow902vaen9bW1v4+TRYdUjghTfCRNS/qqiWMsuOcrRuvme8A8n0pXoZBop9WwhWcVOOxogXD7U14tas615cx/XPNxBd2GCHisAgWamN8SV/pDPe9P36W94h6behRJ2DSrwXKGz6PeEOOxECSdnbsFNICi9zrozXf7SmLu0va5KJZ2cEQ9paB9VQ/LA7ar/on4nvGZygqydPsmV2QqCZi8icOyRuE4qBPwgLVV1OLKgZH+JWtt65aGcrrkNU604yAmIUFUNSudFP3t0IbJUT1o5kTLHrq/qzslHcKVpaOMqdLFwEpv9e6YuUmwJbdanDHFHDhi39KxdR+7iVnBTYHh3/0vz5nl4tIXJ827EGobZgZ2kX1DARjqHjvt5SZjJ1Be3Tmdpvv66BapDkJMpbZYVQW/UKu0HR9GWv4LzmWbxMw+magjntc6KO5QYfjs3XsS4/w7AXy4UxYYzEHNqUCZ7it2rigxirTlaRh6Q6QpV+iLnf6gQicTwxvndKfxHHn6wAOyONhVkmbJpUpoA88cRRQ0KCCuub1l0ZUUD9MHoiv/8fgEp0B6RSXrc7E21PjE8Knv6vh8U61toyPg2pX56O2RgyJ9M1xr3fXHN5mIL0ITC+sUB7Uxg4d0Ay34LHyNXxtaN7yvsRtJM67pbgvpEjPBgrBUeFts9kCXvsPx734PUTlURy/Q07Nmd5n1A5yDlBFD X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 17465dc9-5faa-4ff5-d91d-08daa8cbd805 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:28.4467 (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 7/9] checkasm/llviddspenc: 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: b2JGhJT/n5FI There is no MMX code for diff_bytes since commit 230ea38de143368729ee1cce47b3a87fbafad8e4, 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/llviddspenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/checkasm/llviddspenc.c b/tests/checkasm/llviddspenc.c index 4ec46c96bd..e12003aeeb 100644 --- a/tests/checkasm/llviddspenc.c +++ b/tests/checkasm/llviddspenc.c @@ -52,8 +52,8 @@ static void check_diff_bytes(LLVidEncDSPContext *c) LOCAL_ALIGNED_32(uint8_t, src2, [MAX_STRIDE]); LOCAL_ALIGNED_32(uint8_t, src3, [MAX_STRIDE]); - declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *dst, const uint8_t *src1, - const uint8_t *src2, intptr_t w); + declare_func(void, uint8_t *dst, const uint8_t *src1, + const uint8_t *src2, intptr_t w); memset(dst0, 0, MAX_STRIDE); memset(dst1, 0, MAX_STRIDE); From patchwork Sat Oct 8 01:24:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38623 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:789c:b0:9c:c2cd:5584 with SMTP id bf28csp293025pzc; Fri, 7 Oct 2022 18:25:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM71WnHCnV2FkdWRNJRi16VLwh3b//bcNGXQccGEKNWGT35K6It8fs90PP7XOt26zPtknIUl X-Received: by 2002:a17:906:8a72:b0:78d:43d2:b947 with SMTP id hy18-20020a1709068a7200b0078d43d2b947mr6119452ejc.492.1665192310900; Fri, 07 Oct 2022 18:25:10 -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 dt3-20020a170907728300b0073dc32ccd9fsi3923914ejc.104.2022.10.07.18.25.10; Fri, 07 Oct 2022 18:25:10 -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=oaj13MH8; 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 BB69F68BC15; Sat, 8 Oct 2022 04:24:38 +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 4F2C368BBA0 for ; Sat, 8 Oct 2022 04:24:33 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FiK7IeKExvxWURyQdKqQrnncsQCZOKtkZkhHoxZs/aQlbKL5x5ibxfieJiro0g5EzpGVVELvvt+L1f22Sa7+u5iWVNfzRfhlnahiKQRI4mODhC6uChCGqQkaM5X8laONNtyCoI3L54UROGaanmV/HYgJWW1sgnl5Y75ggk7dKaGlAh9RPzJUSA/wF1jmKzbsjNzDnSpwW4hDTxQytseJ32EkSDSV79qleIXZWIjm4QYlnIT+eKkY9UusBP0a+qWKy0ULYbaTyaWThwDr6CMZg2DOOFPpD86KvYj2rYFzkk54dC/qR7rE0WzIvjoQPN5E2mqsFp7HtUrM2j4UJx6jTQ== 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=h3O5l9GfBAuznGCnz1wbUhNavf6z381CDh60a3LpXBk=; b=V2uCMdWIIFTm0LacOQXdXSkny7PS/J7xzJ5cId4Hn79KjAx0xDbJikKc8EacAcdF5d1Te3Wxy3E54M/CWqfUr3W+eHjjolbNd9VbNb/DS0FhF99GdHSALu9XDh+nbMEKc9O0xrruBuY3PYQoVae5BjgKIAAW/sMoMnUWGXpBVSkpl0vcOKaZutFDYjdZjlqKv+d7eeRcyI/tG1QObzFwmuC00jhoaKJOVGsUO6PgBFCj4XmBtRdUBRJ3zzcc8w7Ma1WfWfmL74VkxAof7BcTq01Mhpu48zYBKTHLwwxb4Gv/sLqmMDA7O1VddGdQD58U57DUFZD9t7F0n8DGD0NG3A== 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=h3O5l9GfBAuznGCnz1wbUhNavf6z381CDh60a3LpXBk=; b=oaj13MH8G9viV0Mjpn6QrHh16M0s7mEssN0vyuR5d5NzQDcveItuUAE/9Hoe03KTbmbrUR1Gs7JCxvNH+OBKrSpd3hTcEEikj479tQ4V//dB9ZWW4KETcZZiiqrScF/EXUocRiypbr4CZ58Qpo1IWINnF46nnKH0qfr+41GVs01qDbgHaef4kMq9QAE5m1j+IIEaNKscO7Xbu007GUUX9pyxCfkqi5VpJnZCrulw1QeRXiCR8GL8DwyWUWVfRlJ4qi8wAJ7EKXC10Tu0ZoIXwY2gXzfMtXtBpLGoT534c7iJ6w4hc/UqwjrS/0GL/X071tCIXWp2xSqLPiSQoAqfrw== 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:29 +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:29 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 8 Oct 2022 03:24:11 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [5qt64Hc3lthsEMel2rKSiqT51H9LFpfBxpieUM6aYYw=] 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-7-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: 74aa9e93-e76d-49d1-8164-08daa8cbd8c9 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmpXYlgiiriwpqBJSiirmy7K+k4H6GtwpE6jRqkApit/L0MRugO6vPnMjCiluZPGRbWV4pDVePU+jyt6ZfltEj74sxRDlDaKFpCKpp5lLVvm9fhTngw8d1HmBa9Fl7s/AdsWCklkP67RX7KTuUoxnrUer6swQLPaiEjomsSJoz1BlzpGvM9qmfpOUCUivm8XWz1jwqQtrKpiormBsXRIQ/xfqp0zp1xlktzu2waU1/IZwqJt+8eXynOmlRgcFCaKoUUPUnjRxtcsilQSC8h6mk4i3cQwMLxkHrqpw2c44ZNi9hiuFCbKo9IVQYCPr7FunvUabI2jB9U1MxxGp2PdtJrh5Q6aMPF5biZdjor4Tntrfvk3UC7pDh6NqsozBPbufVnemK05/kM9WNUezvTWY8UZHYYQuhqiDzpeUBy0LuZ5aD5Qm7VssLGqykhyI7GjUTxDVqCnB3ZyWlh/DRtyFk/pa0x8XHw4IdveIduT62Cj/ss6MSg1zg4aOL3r1yD3NXkMf4cmd1CBOIPO/E4zsKFfDT8aQyIEqOEBYBn3ecNiQuDiON/a6DokCbGqE0Kpp6m0ptWojNJR4UE6/+eCJA2kUtD2qHX6mxUEGGjg1x0XcmE8ABqkqydCnFt3wFUiYjI3a0EAifcHmlOZr3ZEi3vYGaCsL3T2ykAiCM40lmDiZMq5ELFJzLzuIZKw+aTVCs0RQ4GyvgSZ2nJfdXmC1ZNAt5jOP4yDXPYKwWZFzeFZRfAm6Vb+IzqYHyhy5BVT3e4= X-Microsoft-Antispam: BCL:0; X-Microsoft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CrossTenant-Network-Message-Id: 74aa9e93-e76d-49d1-8164-08daa8cbd8c9 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:29.7133 (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 8/9] checkasm/vp8dsp: 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: aEIi+7Bu5Vt+ There is no MMX code for loop filters since commit 6a551f14050674fb685920eb1b0640810cacccf9, 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/vp8dsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/checkasm/vp8dsp.c b/tests/checkasm/vp8dsp.c index c3af54fbfd..87b03d71d5 100644 --- a/tests/checkasm/vp8dsp.c +++ b/tests/checkasm/vp8dsp.c @@ -384,7 +384,7 @@ static void check_loopfilter_16y(void) VP8DSPContext d; int dir, edge, force_hev; int flim_E = 20, flim_I = 10, hev_thresh = 7; - declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *, ptrdiff_t, int, int, int); + declare_func(void, uint8_t *, ptrdiff_t, int, int, int); ff_vp8dsp_init(&d); @@ -430,7 +430,7 @@ static void check_loopfilter_8uv(void) VP8DSPContext d; int dir, edge, force_hev; int flim_E = 20, flim_I = 10, hev_thresh = 7; - declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *, uint8_t *, ptrdiff_t, int, int, int); + declare_func(void, uint8_t *, uint8_t *, ptrdiff_t, int, int, int); ff_vp8dsp_init(&d); @@ -481,7 +481,7 @@ static void check_loopfilter_simple(void) VP8DSPContext d; int dir; int flim_E = 20, flim_I = 30, hev_thresh = 0; - declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *, ptrdiff_t, int); + declare_func(void, uint8_t *, ptrdiff_t, int); ff_vp8dsp_init(&d); From patchwork Sat Oct 8 01:24:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38624 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:789c:b0:9c:c2cd:5584 with SMTP id bf28csp293067pzc; Fri, 7 Oct 2022 18:25:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5jnJFLbnWM50A29pd+RFP6sWjT7eElWmOb561I8p3t6N53UO6GOIJp3z4D0k8V3kOI0sR6 X-Received: by 2002:a05:6402:5507:b0:452:183f:16d1 with SMTP id fi7-20020a056402550700b00452183f16d1mr7193624edb.96.1665192319453; Fri, 07 Oct 2022 18:25:19 -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 h5-20020a170906718500b0078c6abf19bfsi3030892ejk.948.2022.10.07.18.25.19; Fri, 07 Oct 2022 18:25:19 -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="l/hznJlv"; 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 B724768BC30; Sat, 8 Oct 2022 04:24:39 +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 7087268BBFD for ; Sat, 8 Oct 2022 04:24:33 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RvRT1L8L60tC+TRsGnivG82cWRWlX+B3He9n8QZV7tvb0/qEbilSUauQgH1IYK8uR+wJU6fusV8ilsTWkHmsDpPVQS5ocGC1ajwfoWyI11i95Vq/+rgmNvmrkOhv736E5HcMukr9AyDADGJt7O0saKmyMQ9hPwgKZJ3oyhqFXWZppfKZHxGcJMdVza3qomPFpnJ615drPOisdVqVGgdfiREaMmT8Q/ERhGGSWxmOzH3jsRwtaBmP9dLuSrKCRviFwBDCUdyAAOAyoRVB7h/L0HaF6HVKJYzj4n0QEEnBT4USEZkA14aY8X2vG6rDxvY4AfIS6R3j2Y9bCL9ODGtvbA== 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=pw1LBidrAXUmrgQgPMK7S5cLvM5+09wGigLy815EOfM=; b=THiWV0djT9i+lnwDb+/84WVzCni+jNJ9lXyMyQa7HqeOC7uatBPXSfOUvf/loXVuocbgWzPngBU8tmPdHixnkbRgUMzEK4n09E2lFPuptFd8BaEv9w3id8Y6EiOacQMaVJJ97S/miE6bp0eNZSAGOKt93uMfFRUhn9kuGV/MYw8EoB03TPGsFzoYt9pWi/cThRoQ4I2ikysMlCEBLXo8dxs5O+zPJ3rfj/ypcLGfKetMieioxyIe3Mg+3el7xATFGspWKa/KemO3dFdL4/+yH8eKTYzcc0GEySxYAh7NWAB636FAdSfgddNaSanW2TdS6FOhLMi8fU3LzCh4Msf6MQ== 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=pw1LBidrAXUmrgQgPMK7S5cLvM5+09wGigLy815EOfM=; b=l/hznJlvxeRuOd4sROLG8PKJ2qsQZ1M4Zp6yT0eguq9yahSss+s5UBKdyNVfeL1uZGsoaTMifkQgkgwnsIB8EQYLwqcEHbwy8SoABbYYwMn6yE2dOUqyDyxdqtr+LE7Qs/6+JCP+xagC1XC0zaiUPL03hLDHfELeD5byHTl6K6uAL0sbNycbDSjFHnxw3nrGYtlxibVg/AmXjhlMZUsZ/d8lGT4bVRv54To/twJaKv6xzcx4aqcwW398nu4VuEAe6NSKHEgmmgxTfb6/psVvf5p3mRCdkUCggyjdIAs9OwNHjyS4DbfxDe91Yg0ptmh82S0Xex2Okt7M/Lvl7iuulA== 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:30 +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:30 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 8 Oct 2022 03:24:12 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [pZ1qhZWjs2Qt3rx1JoWh/gZIGYN0mmwWCXxPCj2L6NI=] 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-8-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: 49e73fda-8004-4d7e-5dc4-08daa8cbd970 X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmpXYlgiiriwpqBJSiirmy7K+k4H6GtwpE6jRqkApit/LweSNY19+5kMlXaHqjD+X43VSddR2iA7QSaevFZ8bsAgeF34ZSPCpC7BbiAKGdE0ZWBJxB9Ib6HIOPyuk2jDElssQ8Gb4tAMwhZCUgAkINIYMyYN6Ew26LvB7coRWTP1OQusK4NAQOGYRlc3Dk+SoMugnQ+e0wpWSbm39MBxCDCc5+KVCQSjTW1bHRcr5oS5hhyHpYugujO6px1MJ+kdmnx7OdvMrrgmnMOp+Tbbn4Y2bKyTug1FaHF7MOCaI2JgFYuHEqX9qwy9rGNIGjASOhiouUYwqR/TvwDFyiYogBQIFso11yxtnmiTDJDos2u9tRFJdq4H35R00wD5kIIYqEOd7OGLbLHA5/hnpdDvcPUpjNfjAIKgZVuY1cFD7SkHvpkD+pKDRvquaNSKhd3fdD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qqAeU9UzqQEjp8SlXWeGgv2LSLK9bBiusFF7TtFPj6hlIy78T+/YHmrLKMD4sgEM/7EC5y0M07ktmh3/iRkkNAeRCzhHTwFl5m3CXJDSVj9b5SP9xRzw7ZHZe7uEf3uBw0Wf7LadmBqb0WpyRP2Hw5f3HbJS3+FwRkYSDLKpGsSb5jRlznLxAWpP6DDK1K1Gd9BWvF238cVhaRhZe0kHTc5VWMSEmi6MlobntuQrNYg8PAoM+XEv/0WwBKLnWX5hsdosuAxmbmzMv35D2mUYdzx1d0Rv56N0ZjkxFD7PmfL2vrEQRt7bZj3NtllMLVEqeKs7qz1TC X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 49e73fda-8004-4d7e-5dc4-08daa8cbd970 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:30.8537 (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 9/9] checkasm/idctdsp: 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: KLJ98plXwpCX There is no MMX code for (add|put|put_signed)_pixels_clamped since commit bfb28b5ce89f3e950214b67ea95b45e3355c2caf, 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/idctdsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/checkasm/idctdsp.c b/tests/checkasm/idctdsp.c index 02724536a7..c06e607d99 100644 --- a/tests/checkasm/idctdsp.c +++ b/tests/checkasm/idctdsp.c @@ -79,7 +79,7 @@ static void check_add_put_clamped(void) for (size_t t = 0; t < FF_ARRAY_ELEMS(tests); ++t) { void (*func)(const int16_t *, uint8_t * ptrdiff_t) = *(void **)((intptr_t) &h + tests[t].offset); if (check_func(func, "idctdsp.%s", tests[t].name)) { - declare_func_emms(AV_CPU_FLAG_MMX, void, const int16_t *, uint8_t *, ptrdiff_t); + declare_func(void, const int16_t *, uint8_t *, ptrdiff_t); RANDOMIZE_BUFFER16(src, 64); RANDOMIZE_BUFFER8(dst, 10 * 24); call_ref(src0, dst0 + 24 + 8, 24);