Hi,
This patch makes the disassembler not print the "instruction requires:
NEON" message when compiling for M-profile as there are no NEON
extensions for M-profile.
Regards,
Andre
Differential D43125
[ARM] Don't print "Requires NEON" error message for M-profile avieira on Feb 9 2018, 6:32 AM. Authored by
Details Hi, This patch makes the disassembler not print the "instruction requires: Regards,
Diff Detail Event TimelineComment Actions I would of thought it more useful to give a detailed error message, but it seems that is not the practise, so LGTM, thanks. Comment Actions For M-class, "invalid instruction" is indeed more accurate than requires NEON. We don't want people to think they can add "-mfpu=neon" or ".fpu neon" to an M-class to force assembling that code. To have a better handling than this, we'd have to error out earlier saying M-class doesn't have NEON, which probably needs more knowledge than that piece of code has... LGTM too, for now. Comment Actions
We actually could do that here, the code immediately following the change is building the string to be printed, so we could just return a special "M-class doesn't have NEON" string. However, that would probably be a special-case too far, so I think this is fine as it is. Comment Actions Yeah, this would have to be a table-gen driven kind of change to cover all cases. For another patch. |