diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3ffd26882e690fb076ba9b25c421da484f31269f..79cdd173edd53197bb50961ee08e1072a1da53cf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-01-19  Alan Modra  <amodra@bigpond.net.au>
+
+	* config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
+	unlikely_test_section_p test.
+
 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
 
 	* mode-switching.c (optimize_mode_switching): Make it static.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 97430dd414e5e00f12cf1cc46ac9a03cdf28aea1..204bb518a71195198f7ed5c374005567745621ba 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -10838,7 +10838,7 @@ rs6000_assemble_integer (rtx x, unsigned int size, int aligned_p)
       if (TARGET_RELOCATABLE
 	  && in_section != toc_section
 	  && in_section != text_section
-	  && unlikely_text_section_p (in_section)
+	  && !unlikely_text_section_p (in_section)
 	  && !recurse
 	  && GET_CODE (x) != CONST_INT
 	  && GET_CODE (x) != CONST_DOUBLE