From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 32996494F6 for ; Sun, 12 May 2024 16:07:40 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 593FC68D674; Sun, 12 May 2024 19:07:21 +0300 (EEST) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3A71B68D650 for ; Sun, 12 May 2024 19:07:14 +0300 (EEST) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6f4e59081e6so1367061b3a.3 for ; Sun, 12 May 2024 09:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715530032; x=1716134832; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=jIpksEoXqQi2l+tKH8hoZ5+HJZT92LIkJSjjEsXZRgo=; b=UBXvsW8APD78hyDo64W72gwNAcDVw6guUSvX8+cpWUCsoEVy5Sm1hkZr8X5btLWiZo IX+VgycKT8AjwqxWsIVa9k++Q3aQ5xQIcy5rUHEDreolkO6ortanVUAzk89AMYC8GtXH 9Z1FADvRSFiw/M03U1Z8qH/CvgOh/maQCe8TNeTwh84QtpOZVMhI/hPmBXnRMAa+xVRg KW0KNoTuN/Hlp+UkfrKEvVZDVTKZd272GNx1S2fT8PNen4YFHTCvgbI4ty+TojjbAWJo LiJqOR+ziV/794LSsRkH/lqAH7PxXHhPN86meTICDbKi7TPlMAn43ThW7NPfM4mE1xtg kBjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715530032; x=1716134832; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jIpksEoXqQi2l+tKH8hoZ5+HJZT92LIkJSjjEsXZRgo=; b=fgcAEkRYmQv7oD1dAg2fMb1K7hzPB6bTQ0CXKPV/LNu0Bvn8RCKAhcDWaASEi861NZ 8uuCwhTGOdEbdJrJ3yFbPxX1Lg1lDmNij+mbcoX5e2APn+VKoiqqU9umeJilMnAVkNZB IKfoX0OcQO28el5zMaTG6cNubH++QboB1ms8SHxalZLgXcugIo8XCMxbtCnlVBLbQREJ PCuFcfyChTT7JH4QhHpRCCge6IE7oswvuZvNCipjkrCQdQOufYC3mabbWN5qROrjFG11 wWMMCegOZYAkINGSfZgLwULjvt9X7Wb/L/DYcGGZZxY7GuKcpFDPCuqQQXp6333NH/8X JuOA== X-Gm-Message-State: AOJu0Yyy8Mno0Vgjl3aTSgUmVzTBgf5mJOafVYvB8nyvaQMY9h34eea0 2QDoObfE/OotXWwJP7o2bb6dVGpBGhMNNIn5XJie+YqYIlxJd47/ql3kOg== X-Google-Smtp-Source: AGHT+IF5S7vTq7it/EZSGgRfNYNkcoYTGtideGJ15uaxbxJhC7nMl+A3Yf++3CVS/uocZ/pEPGzZVA== X-Received: by 2002:a05:6a00:4f86:b0:6ed:2fb8:467b with SMTP id d2e1a72fcca58-6f4e035918dmr8881288b3a.26.1715530031602; Sun, 12 May 2024 09:07:11 -0700 (PDT) Received: from localhost.localdomain ([190.194.167.233]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6341134705dsm6274574a12.85.2024.05.12.09.07.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 09:07:11 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sun, 12 May 2024 13:06:54 -0300 Message-ID: <20240512160657.2733-3-jamrial@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240511194656.1576-1-jamrial@gmail.com> References: <20240511194656.1576-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 5/8] checkasm/flacdsp: add a test for wasted32 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: James Almer --- tests/checkasm/flacdsp.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tests/checkasm/flacdsp.c b/tests/checkasm/flacdsp.c index d694c1093b..343bee41ed 100644 --- a/tests/checkasm/flacdsp.c +++ b/tests/checkasm/flacdsp.c @@ -83,6 +83,27 @@ static void check_lpc(int pred_order, int bps) bench_new(dst, coeffs, pred_order, qlevel, BUF_SIZE); } +static void check_wasted32(void) +{ + int wasted = rnd() % 32; + LOCAL_ALIGNED_16(int32_t, dst, [BUF_SIZE]); + LOCAL_ALIGNED_16(int32_t, dst0, [BUF_SIZE]); + LOCAL_ALIGNED_16(int32_t, dst1, [BUF_SIZE]); + + declare_func(void, int32_t *, int, int); + + for (int i = 0; i < BUF_SIZE; i++) + dst[i] = rnd(); + + memcpy(dst0, dst, BUF_SIZE * sizeof (int32_t)); + memcpy(dst1, dst, BUF_SIZE * sizeof (int32_t)); + call_ref(dst0, wasted, BUF_SIZE); + call_new(dst1, wasted, BUF_SIZE); + if (memcmp(dst0, dst1, BUF_SIZE * sizeof (int32_t)) != 0) + fail(); + bench_new(dst, wasted, BUF_SIZE); +} + void checkasm_check_flacdsp(void) { LOCAL_ALIGNED_16(uint8_t, ref_dst, [BUF_SIZE*MAX_CHANNELS]); @@ -126,5 +147,8 @@ void checkasm_check_flacdsp(void) if (check_func(h.lpc32, "flac_lpc_32_%d", pred_orders[i])) check_lpc(pred_orders[i], 32); + if (check_func(h.wasted32, "flac_wasted_32")) + check_wasted32(); + report("lpc"); } -- 2.45.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".