This is great, thank you so much! I am also looking for support regarding adding instructions for the target machine.
On Wed, May 25, 2022 at 4:14 PM David Malcolm <dmalc...@redhat.com> wrote: > On Wed, 2022-05-25 at 10:25 +0530, RICHU NORMAN wrote: > > Hi, > > I am a beginner in gcc. I am trying to add an instruction to riscv- > > gcc.It > > would be helpful could help with a few tips . > > Hi Richu - welcome to GCC development. > > FWIW I've written a guide for new GCC contributors which you might find > helpful: > https://gcc-newbies-guide.readthedocs.io/en/latest/index.html > > Caveat: I'm much more familiar with the frontends/diagnostics, rather > than the backends/RTL, so there may be a "frontend" bias in that guide. > > > 1.How to write comments to rtl or create a custom log file to log > > comments > > to rtl dump? > > 2.How to run testsuite ? > > 3.Is there a way to directly run an rtl test case? Like giving rtl > > input > > and checking the generated asm.(Like in the attachment which is > > posted in > > bugzilla[ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82815 ]) > > Please suggest a way to run the gcc-testsuite with these cases. Pfa > > I wrote some notes on dealing with the testsuite, and on running > individual cases here: > > https://gcc-newbies-guide.readthedocs.io/en/latest/working-with-the-testsuite.html > > Hope this is helpful; good luck > Dave > > -- Richu Norman Research Scholar Department of Computer Science Cochin University of Science and Technology Ph : (+91)-8848455627