Gordon Keiser
2013-Mar-30 01:14 UTC
[LLVMdev] Adding ARM UDF / UND instruction to TableGen
I'm preparing a patch which adds the general form of the "permanently undefined" instruction (A8.8.247) to ARM TableGen for disassembly purposes. I've placed it below the TRAP variants already defined, and those are decoded in preference to it, so that isn't an issue, and it has no pattern so should never occur during codegen. It seems as though none of the gas versions I've tried know this mnemonic; Microsoft's armasm from VS 2012 (which I believe is based heavily on ARM's assembler) recognizes both UDF and UND for this instruction. IDA 6.4 disassembles it as UND. The current manual says UDF. Does anyone have a preference for this? I'm planning on making the default disassembly string UND since it's the most common in my limited sample, and adding an alias of UDF for assembly purposes. Do any other assemblers even recognize this instruction by name? Gordon Keiser Software Development Engineer Arxan Technologies
Tim Northover
2013-Mar-31 17:52 UTC
[LLVMdev] Adding ARM UDF / UND instruction to TableGen
Hi Gordon,> Does anyone have a preference for this?I'd prefer going along with the documentation. If someone sees "UDF" and doesn't know what it means they can look it up the same place as any other instruction (the ARM architecture reference manual). If they see "UND" they'd have less options.> and adding an alias of UDF for assembly purposes.Having an alias supporting both for assembly sounds like a good idea.> Do any other assemblers even recognize this instruction by name?Surprisingly, the ARM assembler itself seems to accept "UND" but not "UDF" and can't disassemble either. Don't know about any others. Tim.