Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4881547pjb; Mon, 27 Jul 2020 07:30:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGKLiUSiPyoqqjkKd4lSbdzYO3GPr9VbDsKzkWphgJZo8i41xeuBdv12tp7L6BfzB1njeV X-Received: by 2002:a17:906:17cc:: with SMTP id u12mr20781959eje.344.1595860221634; Mon, 27 Jul 2020 07:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595860221; cv=none; d=google.com; s=arc-20160816; b=do48+ggAVYvZjow5fgVbACFsvuFtDvL6THsaf1B8z6o8qwW8b+68VKCPjL6b9bU/m4 wpQo30SJZkgZEPFWeJY5Vu80tP1S53vnCflWBysy56GxcZJA9jpm1kffwVZxDIG4KNRH VyAxeTw3fzKcuFDeALiQRr9rEDNxTg09V5YtQqY8GVey2NFTCLr2f29ynS5Jh6rRy01m +L0f6PIb0pYmWT6POsah9i95xNeCje5INnmOHu5xYA4uVDGe190NUKuVBaTFahjTS9ja f8WP7BgncF9jJIyj2DxqCmUMsEMlcj+kzhWIN6C4if4C7AdeYXYixGc8K35Sr3b3RE6T bp4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IE+So64SJGedld+OHyXUmvcHJ/s2utmpXyJBUxCxI/A=; b=jHabMv73HcabZ/K+KC/5qRLMQCf/SYoyfDBcnTIMJYC7KRKcOiBxpRC3IZxeF3QZwa hSKeBbW1/FxLtNJcCmwE2E6JtDk8NpobWj34doD4Di+8N9QPtFFuVFdqCs7KrKnzEnPs RHWnm+1tupu6IsfGrDZUwgZwU78MSh27GpqzTvY4kFFGniidbq+gCix3CMLx256HBdr9 gkilhE8ZuqnVdhSquOEXwoZV7RpnIvwr8JqZAPHabH3Cv7G0Dou0Ni2Sa+zOZXP28oBN 8OdCnR5pVRlZtBk1t5vQcQWQfvby6bc9uVz466xCVFb4GmHrOCDJxKN+j7OQnbpfdjY+ RjjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=arSpuOji; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si2500549edp.439.2020.07.27.07.29.58; Mon, 27 Jul 2020 07:30:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=arSpuOji; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732695AbgG0O2Y (ORCPT + 99 others); Mon, 27 Jul 2020 10:28:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:53840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732257AbgG0OYV (ORCPT ); Mon, 27 Jul 2020 10:24:21 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AAA682173E; Mon, 27 Jul 2020 14:24:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859861; bh=p7kbBdidlvQ7bLIBBd8hhQHTZoQliGldBUR16LYjEP8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=arSpuOjiW10ZrAnsrK8ShmzshalgQTWUBdxpkKA7hALhFl4Cz/kUrt7YGJu9VXrzF sBduNVayFzEuOxipFDHrdrPyMVq6PLESUsPaOoDmV3BjL5lo0iBwRjcPpul4u1GSUd fSRKc2GVV6VE01zeMrqxbXEsyJEpOCUMQeAqSbLE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Thomas Gleixner , Nick Desaulniers , Sasha Levin Subject: [PATCH 5.7 134/179] x86: math-emu: Fix up cmp insn for clang ias Date: Mon, 27 Jul 2020 16:05:09 +0200 Message-Id: <20200727134939.177146438@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 81e96851ea32deb2c921c870eecabf335f598aeb ] The clang integrated assembler requires the 'cmp' instruction to have a length prefix here: arch/x86/math-emu/wm_sqrt.S:212:2: error: ambiguous instructions require an explicit suffix (could be 'cmpb', 'cmpw', or 'cmpl') cmp $0xffffffff,-24(%ebp) ^ Make this a 32-bit comparison, which it was clearly meant to be. Signed-off-by: Arnd Bergmann Signed-off-by: Thomas Gleixner Reviewed-by: Nick Desaulniers Link: https://lkml.kernel.org/r/20200527135352.1198078-1-arnd@arndb.de Signed-off-by: Sasha Levin --- arch/x86/math-emu/wm_sqrt.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/math-emu/wm_sqrt.S b/arch/x86/math-emu/wm_sqrt.S index 3b2b58164ec18..40526dd85137b 100644 --- a/arch/x86/math-emu/wm_sqrt.S +++ b/arch/x86/math-emu/wm_sqrt.S @@ -209,7 +209,7 @@ sqrt_stage_2_finish: #ifdef PARANOID /* It should be possible to get here only if the arg is ffff....ffff */ - cmp $0xffffffff,FPU_fsqrt_arg_1 + cmpl $0xffffffff,FPU_fsqrt_arg_1 jnz sqrt_stage_2_error #endif /* PARANOID */ -- 2.25.1