[v1.05][X86] Do not show empty SSE if not supported (#260)

This commit is contained in:
Dr-Noob
2024-08-02 10:09:51 +01:00
parent 6164884415
commit cb186a2f97
2 changed files with 11 additions and 4 deletions

View File

@@ -634,9 +634,10 @@ bool print_cpufetch_x86(struct cpuInfo* cpu, STYLE s, struct color** cs, struct
}
// Show the most modern vector instructions.
// If AVX is supported show it, otherwise show SSE
if (strcmp(avx, "No") == 0) {
setAttribute(art, ATTRIBUTE_SSE, sse);
if (strcmp(sse, "No") != 0) {
setAttribute(art, ATTRIBUTE_SSE, sse);
}
}
else {
setAttribute(art, ATTRIBUTE_AVX, avx);