diff --git a/gcc/config/rx/rx.md b/gcc/config/rx/rx.md
index 6959c6095c664be8e6bfd3c03c33f3ecea215bef..f6b13b92aa5633b801e44e38d196b2dac61dc5cc 100644
--- a/gcc/config/rx/rx.md
+++ b/gcc/config/rx/rx.md
@@ -1722,7 +1722,7 @@
 	  (minus:SI
 	    (match_operand:SI      4 "register_operand"   "  1, 1")
 	    (match_operand:SI      5 "rx_compare_operand" " rQ,rQ"))
-	  (geu:SI (match_dup 2) (match_dup 3))))
+	  (gtu:SI (match_dup 3) (match_dup 2))))
    (clobber (reg:CC CC_REG))]
   ""
   "#"