glibc/sysdeps/powerpc/powerpc64 has .machine
{altivec,power4,power5,power6,power7,power8} (.machine power9 is planned in
sysdeps/powerpc/powerpc64/power9/strcmp.S).
The diagnostic is not useful anyway so just delete it.
// FIXME: Right now, the parser always allows any available
// instruction, so the .machine directive is not useful.
- // Implement ".machine any" (by doing nothing) for the benefit
- // of existing assembler code. Likewise, we can then implement
- // ".machine push" and ".machine pop" as no-op.
- if (CPU != "any" && CPU != "push" && CPU != "pop" && CPU != "ppc64")
- return TokError("unrecognized machine type");
+ // In the wild, any/push/pop/ppc64/altivec/power[4-9] are seen.
Parser.Lex();
.machine "pop"
.machine ppc64
+
+# Used in glibc.
+ .machine altivec
+ .machine power4
+ .machine power8