Index: gcc/gcc/rtlanal.c
===================================================================
--- gcc/gcc/rtlanal.c	(revision 850)
+++ gcc/gcc/rtlanal.c	(working copy)
@@ -4933,6 +4933,9 @@
   if (CC0_P (op0))
     return 0;
 
+  if (GET_RTX_LENGTH (code) != 2)
+    return 0;
+
   return gen_rtx_fmt_ee (code, VOIDmode, op0, op1);
 }
 
