This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC Eliminates my Custom RTL ..How to stop this?


Balaji V. Iyer wrote:

> This is what I am trying to achieve. I want to indicate to my processor
> at certain points of execution to do certain control behavior. I am
> trying to do this by inserting a specialized instruction that will do
> so. 
> 
> I am not using the unspec model. I created a new RTL in rtl.def, then I
> am inserting that RTL at fixed points of my code, and have a constraint
> in my .md file to catch that RTL and convert it into an instruction.

That isn't going to work unless you tell gcc what your magic instruction
does.  I suggest you use an UNSPEC_VOLATILE.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]