This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix rs6000 floatditf2.


This pattern was just wrong, DF can't hold the full precision of a DI.

Tested with 'make quickstrap' (rebuilding libgcc2), and a dejagnu
testrun with -mlong-double-128.

-- 
- Geoffrey Keating <geoffk@apple.com>


===File ~/patches/rs6000-longdouble-floatditf.patch=========
2004-01-08  Geoffrey Keating  <geoffk@apple.com>

	* config/rs6000/rs6000.md (floatditf2): Delete.

Index: config/rs6000/rs6000.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.md,v
retrieving revision 1.280
diff -u -p -c -p -r1.280 rs6000.md
*** config/rs6000/rs6000.md	6 Jan 2004 21:03:06 -0000	1.280
--- config/rs6000/rs6000.md	8 Jan 2004 22:27:09 -0000
***************
*** 8275,8295 ****
  	(float_truncate:SF (match_dup 2)))]
    "")
  
- (define_insn_and_split "floatditf2"
-   [(set (match_operand:TF 0 "gpc_reg_operand" "=f")
-         (float:TF (match_operand:DI 1 "gpc_reg_operand" "*f")))
-    (clobber (match_scratch:DF 2 "=f"))]
-   "(DEFAULT_ABI == ABI_AIX || DEFAULT_ABI == ABI_DARWIN)
-    && TARGET_POWERPC64
-    && TARGET_HARD_FLOAT && TARGET_FPRS && TARGET_LONG_DOUBLE_128"
-   "#"
-   "&& reload_completed"
-   [(set (match_dup 2)
- 	(float:DF (match_dup 1)))
-    (set (match_dup 0)
- 	(float_extend:TF (match_dup 2)))]
-   "")
- 
  (define_expand "floatsitf2"
    [(set (match_operand:TF 0 "gpc_reg_operand" "=f")
          (float:TF (match_operand:SI 1 "gpc_reg_operand" "r")))]
--- 8289,8294 ----
============================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]