Skip to content

Commit ae3f1e0

Browse files
arndbgregkh
authored andcommitted
x86: math-emu: Fix up 'cmp' insn for clang ias
[ 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 <arnd@arndb.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Link: https://lkml.kernel.org/r/20200527135352.1198078-1-arnd@arndb.de Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 887e506 commit ae3f1e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/math-emu/wm_sqrt.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ sqrt_stage_2_finish:
209209

210210
#ifdef PARANOID
211211
/* It should be possible to get here only if the arg is ffff....ffff */
212-
cmp $0xffffffff,FPU_fsqrt_arg_1
212+
cmpl $0xffffffff,FPU_fsqrt_arg_1
213213
jnz sqrt_stage_2_error
214214
#endif /* PARANOID */
215215

0 commit comments

Comments
 (0)