From patchwork Sun Apr 26 19:44:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?FR=C3=89D=C3=89RIC_RECOULES?= X-Patchwork-Id: 19285 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a25:3c87:0:0:0:0:0 with SMTP id j129csp2228359yba; Sun, 26 Apr 2020 12:45:40 -0700 (PDT) X-Google-Smtp-Source: APiQypLxJud+gEFnvInBfaafSBZnBH3cbU03upEB5UsIJW0XEYu6h8IBuirHupjwibaEiHLsheY7 X-Received: by 2002:a5d:420d:: with SMTP id n13mr25619124wrq.204.1587930340621; Sun, 26 Apr 2020 12:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587930340; cv=none; d=google.com; s=arc-20160816; b=U3NBa71LR4VuqVuXnb5pVlDPJr/e9wLzM6MZf7YjS9T4LUaDxyJ04ccc5bRJkTZAFM 8znnvzfC7VisoejINt9zj7exD/pw5NzGlbthPbE7dlRzkyRLnaKmnY/6wB5akPGbbIUZ WhT8vWJ38q85yML9mNOlORjCOo+zGbGQkGvrng+WuLMJl8xWCcy8Zh/jIoSx/uqyPxZp yubvphAgS/1LU8de26y+ls2VshC7KNGctrNCdj4un5CVngaw0qs/PjFboRWOr64dRrrw ys+Kv1G2rElDZkD4ZtrXDuP0KSvUw7IP+kwlh6nDxXs0vcbIXLJ3AbCOQNZ8k2h6mZPv lqIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:delivered-to; bh=cClxanpKD3PzcbzkKA6/3ayUTtV4ItcuYyBAoGVjDBs=; b=y9KVKDDyh0lZEAND47eSfqjdM8FTy7i3kVY/5KO5WWdHdtslS1UBAca7hM2xIkezsb HoZvPcRqiEn0VH4W1bIiXafkCPC4kEjRykrWfot1VBMziELkuWGPjANV7vP6kNrbWraE yPYPcYaBufuNfbI+tSkasT9musLczOLhvcxVXl6SmNp3Mu/uyXaAu0RgQ8DTPHVRNGGM Lxo6AI3COzUBV7ytAf6OJUNL/xLShgxqWQtO25+WY36FNsBWLun95ZvUjJzVuWpB2UdU kgRtE2Y+msz23RHEsLuErZHzZZxhMjTRWP6ftRurlKTeCVrjxqSQa4fg/ZC3WVCO1CgL i6Wg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a73si8797332wme.161.2020.04.26.12.45.39; Sun, 26 Apr 2020 12:45:40 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 149C168C6BC; Sun, 26 Apr 2020 22:45:20 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtp.smtpout.orange.fr (smtp03.smtpout.orange.fr [80.12.242.125]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 84A3968C6AF for ; Sun, 26 Apr 2020 22:45:16 +0300 (EEST) Received: from is232189.intra.cea.fr ([46.193.2.18]) by mwinf5d50 with ME id XXkk220050PJwDa03XlGJ0; Sun, 26 Apr 2020 21:45:16 +0200 X-ME-Helo: is232189.intra.cea.fr X-ME-Auth: ZnJlZGVyaWMucmVjb3VsZXNAb3JhbmdlLmZy X-ME-Date: Sun, 26 Apr 2020 21:45:16 +0200 X-ME-IP: 46.193.2.18 From: frederic.recoules@univ-grenoble-alpes.fr To: ffmpeg-devel@ffmpeg.org Date: Sun, 26 Apr 2020 21:44:22 +0200 Message-Id: <20200422174918.7290-12-frederic.recoules@univ-grenoble-alpes.fr> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200422174918.7290-1-frederic.recoules@univ-grenoble-alpes.fr> References: <20200422174918.7290-1-frederic.recoules@univ-grenoble-alpes.fr> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 12/14] [inline assembly] add xmm clobbers to lpc X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: =?utf-8?q?Fr=C3=A9d=C3=A9ric_Recoules?= Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: P3dVZ4fk+ju2 Content-Length: 1808 From: Frédéric Recoules --- libavcodec/x86/lpc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/x86/lpc.c b/libavcodec/x86/lpc.c index 6c72e21bac..6789027277 100644 --- a/libavcodec/x86/lpc.c +++ b/libavcodec/x86/lpc.c @@ -118,7 +118,8 @@ static void lpc_compute_autocorr_sse2(const double *data, int len, int lag, :"+&r"(i) :"r"(autoc+j), "r"(data+len), "r"(data+len-j) NAMED_CONSTRAINTS_ARRAY_ADD(pd_1) - :"memory" + :"memory" XMM_CLOBBERS(, "%xmm0", "%xmm1", "%xmm2", + "%xmm3", "%xmm4", "%xmm5") ); } else { __asm__ volatile( @@ -142,6 +143,7 @@ static void lpc_compute_autocorr_sse2(const double *data, int len, int lag, :"+&r"(i), "=m"(autoc[j]), "=m"(autoc[j+1]) :"r"(data+len), "r"(data+len-j) NAMED_CONSTRAINTS_ARRAY_ADD(pd_1) + XMM_CLOBBERS_ONLY("%xmm0", "%xmm1", "%xmm3", "%xmm4") ); } }