diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b368db5fa839ae8cb7b965996811dd6bef4bb8c6..5266fc0f1feccd2bd0bfdc24a1550b45f0f7c73f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
+
+	* config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
+
 2002-01-23  Richard Henderson  <rth@redhat.com>
 
 	* config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md
index 451abf81e877162366b06a56f2c0803bf6b156a3..c708da4d975ed83669f194351db1e62be53731bd 100644
--- a/gcc/config/sparc/sparc.md
+++ b/gcc/config/sparc/sparc.md
@@ -1,6 +1,6 @@
 ;- Machine description for SPARC chip for GNU C compiler
 ;;  Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-;;  1999, 2000, 2001 Free Software Foundation, Inc.
+;;  1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 ;;  Contributed by Michael Tiemann (tiemann@cygnus.com)
 ;;  64 bit SPARC V9 support by Michael Tiemann, Jim Wilson, and Doug Evans,
 ;;  at Cygnus Support.
@@ -5316,7 +5316,7 @@
 
 (define_expand "fix_trunctfdi2"
   [(set (match_operand:DI 0 "register_operand" "=e")
-	(fix:SI (fix:TF (match_operand:TF 1 "register_operand" "e"))))]
+	(fix:DI (fix:TF (match_operand:TF 1 "register_operand" "e"))))]
   "TARGET_V9 && TARGET_FPU && (TARGET_HARD_QUAD || TARGET_ARCH64)"
   "
 {