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-Micro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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;