Hello everyone,

As a proof of concept, I am trying to extend the gcc spu backend to produce
a few new assembly instructions, specifically loads and stores of the form

Load rt, s2(s18)
Store s2(s18), rc

However after searching and reading a lot of documentation, I still cannot
figure out all the files that need to be editted in order for gcc to output
an instruction and understand how that instruction works. Currently I have
it detecting the 'store' is an incorrect mnemoic (because I got define_inst
outputting it). I would like to know if there are any recommended tutorials
on how to add a instruction to the assembly language, and if there is an
easier backend port that I should experiment on until I learn how to deal
with all the components of RTL.

Note, this is a proof of concept, so I only need to be able to output the
instructions, not assemble them or even verify that they are the correct
bit size.

Thanks for your help,

Gobi

Reply via email to