David Given wrote:
[...]
When I actually try to build stuff, however, the branch gets emitted but
then silently deleted during the mach pass.
Solved: turned out to be old code in the TARGET_MACHINE_DEPENDENT_REORG,
dating from the port I was basing my backend on, which was mangling my
code. I
So I'm trying to get compare-and-branch working on my architecture. I
have the following patterns:
(define_expand cbranchsf4
[(set
(reg:CC CC_REGNO)
(compare:CC
(match_operand:SF 1 register_operand)
(match_operand:SF 2 register_operand)))
(set
(pc)