Comments
Patch
===================================================================
@@ -4694,12 +4694,17 @@ canonicalize_condition (rtx insn, rtx co
rtx tem;
rtx op0, op1;
int reverse_code = 0;
enum machine_mode mode;
basic_block bb = BLOCK_FOR_INSN (insn);
+ /* Single-bit tests sometimes use logic ops to generate the
+ condition, rather than comparisons. */
+ if (! COMPARISON_P (cond))
+ return 0;
+
code = GET_CODE (cond);
mode = GET_MODE (cond);
op0 = XEXP (cond, 0);
op1 = XEXP (cond, 1);
if (reverse)