diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0869b47c6daa92d597ca72351461eca581b0ae8c..99d62afed7fd9bad76538a29385b7707034ac39d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2003-02-24  Jeff Law  <law@redhat.com>
+
+	* i386.md (testdi_1_rex64): Discourage reload from using the %eax
+	alternative.
+	(testsi_1, testhi_1, testqi_1): Likewise.
+
 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
 	* config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 9c1d270fc34705585a475a8e2b576fd014642219..bb2eb74e551cbb8f045017ac205b721441badd20 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -8043,7 +8043,7 @@
 (define_insn "*testdi_1_rex64"
   [(set (reg 17)
 	(compare
-	  (and:DI (match_operand:DI 0 "nonimmediate_operand" "%*a,r,*a,r,rm")
+	  (and:DI (match_operand:DI 0 "nonimmediate_operand" "%!*a,r,!*a,r,rm")
 		  (match_operand:DI 1 "x86_64_szext_nonmemory_operand" "Z,Z,e,e,re"))
 	  (const_int 0)))]
   "TARGET_64BIT && ix86_match_ccmode (insn, CCNOmode)"
@@ -8061,7 +8061,7 @@
 (define_insn "testsi_1"
   [(set (reg 17)
 	(compare
-	  (and:SI (match_operand:SI 0 "nonimmediate_operand" "%*a,r,rm")
+	  (and:SI (match_operand:SI 0 "nonimmediate_operand" "%!*a,r,rm")
 		  (match_operand:SI 1 "nonmemory_operand" "in,in,rin"))
 	  (const_int 0)))]
   "ix86_match_ccmode (insn, CCNOmode)"
@@ -8082,7 +8082,7 @@
 
 (define_insn "*testhi_1"
   [(set (reg 17)
-        (compare (and:HI (match_operand:HI 0 "nonimmediate_operand" "%*a,r,rm")
+        (compare (and:HI (match_operand:HI 0 "nonimmediate_operand" "%!*a,r,rm")
 			 (match_operand:HI 1 "nonmemory_operand" "n,n,rn"))
 		 (const_int 0)))]
   "ix86_match_ccmode (insn, CCNOmode)"
@@ -8102,7 +8102,7 @@
 
 (define_insn "*testqi_1"
   [(set (reg 17)
-        (compare (and:QI (match_operand:QI 0 "nonimmediate_operand" "%*a,q,qm,r")
+        (compare (and:QI (match_operand:QI 0 "nonimmediate_operand" "%!*a,q,qm,r")
 			 (match_operand:QI 1 "nonmemory_operand" "n,n,qn,n"))
 		 (const_int 0)))]
   "ix86_match_ccmode (insn, CCNOmode)"