https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117265

--- Comment #7 from H. Peter Anvin <hpa at zytor dot com> ---
I have included a concrete example from the Linux kernel (with other parts of
the code stripped for clarity.)

The file asm_header.s shows how it could be implemented as an assembly header.
As you can see, it is way simpler.

Other use cases are things like instructions not yet implemented in as, which
could simply be collected in a header file as a set of macros using .insn if
available and .byte if not, where the .byte version could still do processing
of arguments; this would mean that the C code would have zero need to know
about these cases.

Reply via email to