diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index db55afad71d6550346ac4f31ac29d2db9a692018..13254b0b54603d4a27b33247bfa3e6ef507acea3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-29  Alan Modra  <amodra@bigpond.net.au>
+
+	PR target/24102
+	* config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
+	check for numbers that need no bit twiddle.
+
 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
 
 	* Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 606023ef96aa6758684ecc291ccd6a412359d193..d064387f278187bac760be56e5345497b6870f37 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -5425,7 +5425,7 @@
    (set (match_dup 0) (plus:DI (match_dup 0)
 			       (const_int 2047)))
    (set (match_dup 4) (compare:CCUNS (match_dup 3)
-				     (const_int 3)))
+				     (const_int 2)))
    (set (match_dup 0) (ior:DI (match_dup 0)
 			      (match_dup 1)))
    (parallel [(set (match_dup 0) (and:DI (match_dup 0)