https://bugs.kde.org/show_bug.cgi?id=323431

--- Comment #13 from Paul Floyd <pjfl...@wanadoo.fr> ---
I also need to look more at #339596 (which has XOP and FMA4 but FMA4 already
got added in #369000).

As Mark has commented, finding suitable hardware is difficult. I just looked at
a AMD EPYC 7773X box ant it no longer has xop.

Here is a patch for the feature test for any eventual regression test

diff --git a/tests/x86_amd64_features.c b/tests/x86_amd64_features.c
index 488f155b6..33fd55d2d 100644
--- a/tests/x86_amd64_features.c
+++ b/tests/x86_amd64_features.c
@@ -127,6 +127,10 @@ static Bool go(char* cpu)
      level = 1;
      cmask = (1 << 27) | (1 << 28);
      require_xgetbv = True;
+   } else if (strcmp (cpu,  "amd64-xop" ) == 0) {
+     level = 0x80000001;
+     cmask = 1 << 11;
+     require_amd = True;
    } else if (strcmp (cpu,  "amd64-fma4" ) == 0) {
      level = 0x80000001;
      cmask = 1 << 16;

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to