From 06360a5cbd9b3fbe177aa5892ce26dcda6960fb5 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 11 Mar 2024 08:23:45 +0100 Subject: x86: KeyLocker insn interaction with -msse-check / .sse_check Some of these have no explicit %xmm operand(s), yet they still act SSE- like (in leaveing bits 128 and up untouched). Hence they want similarly diagnosing, if that was asked for. --- gas/config/tc-i386.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gas/config/tc-i386.c') diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 8790e1b..85dc79f 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -6761,7 +6761,8 @@ md_assemble (char *line) && !is_cpu (&i.tm, CpuSSE4a) && !is_any_vex_encoding (t)) { - bool simd = false; + /* Some KL and all WideKL insns have only implicit %xmm operands. */ + bool simd = is_cpu (t, CpuKL) || is_cpu (t, CpuWideKL); for (j = 0; j < t->operands; ++j) { -- cgit v1.1