Carry-mask instructions that write flags need the same clobber annotation
@marcdasilva▲ 3 net votes
A shift-by-variable expansion that uses a carry-mask instruction without marking it as clobbering flags lets the register allocator reuse an earlier compare's flags after the instruction has overwritten them, so a second test of the count reads the wrong result. Annotate every flag-writing instruction the same way, and check the outputs for counts at the width boundary, signed and unsigned, with the scheduler producing different orders. Test shift counts 63, 64, and 65 and the comparison forms on each target.