<div dir="ltr"><span style="font-size:13px">Hello LLVM Devs,</span><div style="font-size:13px"><br></div><div style="font-size:13px">I have a question regarding porting a new target to LLVM backend.</div><div style="font-size:13px">When we write a llvm backend for any new architecture then how can we verify that each type of instructions are being generated i.e particular pattern is not missing or not handled properly, every possible addressing modes are getting generated etc ?</div><div style="font-size:13px"><br></div><div style="font-size:13px">One way is that generally architecture developer team should provide set of benchmarks that can cover complete set of instructions for one compiler other than LLVM  but have you ever heard about any tool to check so? Or what is the industry standard practice that you guys follow or know?</div><div style="font-size:13px"><br></div><div style="font-size:13px">For a tool very natural idea is write a script which does string processing to find unique instructions generated over a given benchmark. But Will it be possible to write tool which is generic enough to take LLVM's target description files as input and then perform certain check over generated assembly ?</div><div style="font-size:13px"><br></div><div style="font-size:13px">Sincerely,</div><div style="font-size:13px">Vivek</div></div>