Flags and data mixing problem

Konstantin Vladimirov konstantin.vladimirov@gmail.com
Tue Aug 23 18:37:00 GMT 2011


Hi, all

Consider architecture, where *any* data register have associated flag
field. I.e. any register may be used as a data store to further use,
and as a flag keeper to further branch. Do you have any ideas how to
utilize this property in GCC machine description? May be any examples
of existing similar machines? I tried to introduce new CC mode, like
CC_DATA, but I can not explain to compiler, that given register may
have CCmode and SImode (or any other data mode -- HI, QI, DI) at the
same time. All that I have for now -- is couple of very ineffective
workarounds, like peephole rules, that works, but it is fighting
against GCC interface, not following it.

---
With best regards, Konstantin



More information about the Gcc mailing list