From ce504911e5c4068a3498eebde4064b24382c7598 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 16 Feb 2020 20:10:20 -0800 Subject: [PATCH] x86: Don't disable SSE3 when disabling SSE4a Since SSE3 is independent of SSE4a, don't disable SSE3 when disabling SSE4a. * i386-gen.c (cpu_flag_init): Remove CPU_ANY_SSE3_FLAGS from CPU_ANY_SSE4A_FLAGS. --- opcodes/ChangeLog | 5 +++++ opcodes/i386-gen.c | 2 +- opcodes/i386-init.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 908afdd9a02..9d02fc45e7c 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2020-02-16 H.J. Lu + + * i386-gen.c (cpu_flag_init): Remove CPU_ANY_SSE3_FLAGS from + CPU_ANY_SSE4A_FLAGS. + 2020-02-17 Alan Modra * i386-gen.c (cpu_flag_init): Correct last change. diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index 407479261cd..4d98d31b74d 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -334,7 +334,7 @@ static initializer cpu_flag_init[] = { "CPU_ANY_SSE4_2_FLAGS", "CpuSSE4_2" }, { "CPU_ANY_SSE4A_FLAGS", - "CPU_ANY_SSE3_FLAGS|CpuSSE4a" }, + "CpuSSE4a" }, { "CPU_ANY_AVX_FLAGS", "CPU_ANY_AVX2_FLAGS|CpuF16C|CpuFMA|CpuFMA4|CpuXOP|CpuAVX" }, { "CPU_ANY_AVX2_FLAGS", diff --git a/opcodes/i386-init.h b/opcodes/i386-init.h index d4674fc02ac..36660b109bb 100644 --- a/opcodes/i386-init.h +++ b/opcodes/i386-init.h @@ -1172,7 +1172,7 @@ #define CPU_ANY_SSE4A_FLAGS \ { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ - 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ + 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \ -- 2.30.2