On Fri, Aug 14, 2020 at 3:33 PM Matt Wette via Gcc <gcc@gcc.gnu.org> wrote: > Happy to see someone working this. Are you starting with one CC mode?
I'm also working on this (mostly at bug#92792), and so far am using two modes: the general reg:CC mode for proper comparison insns, and CCNZ for optimization in the CC-setting variants produced by the cmpelim pass. > I noticed that the current CC0 implementation seems to effectively use > several modes. For example, one for use of the t flag. As far as I can tell, the current code emits T setters and getters together as one insn, even going to the trouble of setting T redundantly when it already has been set. Am I missing something?