On Thu, Aug 12, 2021 at 8:31 AM Martin Liška <mli...@suse.cz> wrote:
>
> On 8/12/21 5:26 PM, H.J. Lu wrote:
> > Will it hurt if they have proper feature_priorities you added?
>
> No. They are unused, by we should use the proper priorities.
>
> Martin

+      const char *arch_name = attrs_str + strlen ("arch=");
+      if (startswith (arch_name, "x86-64"))
+ {
+   arg_str = arch_name;
+   builtin_fn = IX86_BUILTIN_CPU_SUPPORTS;
+   if (strcmp (arch_name, "x86-64") == 0)
+     priority = P_X86_64_BASELINE;
+   else if (strcmp (arch_name, "x86-64-v2") == 0)
+     priority = P_X86_64_V2;
+   else if (strcmp (arch_name, "x86-64-v3") == 0)
+     priority = P_X86_64_V3;
+   else if (strcmp (arch_name, "x86-64-v4") == 0)
+     priority = P_X86_64_V4;

What happens for arch=x86-64-v5?

+ }

-- 
H.J.

Reply via email to