Intel XED – x86 Encoder Decoder
intelxed.github.io
intelxed.github.io
For example, ARM tests their ARM LLVM backend using a golden reference implementation. This is the MC Hammer test: encode/decode assemble/disassemble[1]. This can be the golden reference for the same with x86_64 and useful for GCC+LLVM.
[1] https://llvm.org/devmtg/2012-04-12/Slides/Richard_Barton.pdf
Link for the talk https://www.youtube.com/watch?v=oWKDaD9wrWo