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]

Re: passing information to back-end from source code?


> and then write to a C variable given that register number.  However,
> the regmove pass is moving the constant 0 or 1 into another register
> and then trying to assign to R33 from that register (and so it loses
> the information I wanted to pass).  I cannot see why it does that (or
> even which macros tell GCC that the sequence of loads/moves it
> generates while not generating the obvious "move R33, 0") -- in
> particular, R33 is in its own register class.

This sounds like regmove has misunderstood your move pattern and thinks
the source needs to be a register.  How does the definition of the
move pattern in the *.md file look like?

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