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 target/19236


Hello!

Bootstrapped, regtesting is in progress. I guess this can be comitted under "obvious rule".

BTW: This is target bug, not middle-end one. However, it would be nice if middle-end would delete instructions, that are known to be no-ops, such as:

(insn 9 8 10 0 (set (reg:XF 64) (float_extend:XF (reg:XF 62))) -1 (nil) (expr_list:REG_DEAD (reg:XF 62) (nil)))


2005-01-03 Uros Bizjak <uros@kss-loka.si>


   PR target/19236
   * config/i386/i386.c (log1psf2): Change operands[0,1] mode to SFmode.
   (log1pdf2): Change operands[0,1] mode to DFmode.

Uros.
Index: i386.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.md,v
retrieving revision 1.596
diff -u -p -r1.596 i386.md
--- i386.md	3 Jan 2005 06:26:51 -0000	1.596
+++ i386.md	3 Jan 2005 08:43:43 -0000
@@ -15677,8 +15677,8 @@
    (set_attr "mode" "XF")])
 
 (define_expand "log1psf2"
-  [(use (match_operand:XF 0 "register_operand" ""))
-   (use (match_operand:XF 1 "register_operand" ""))]
+  [(use (match_operand:SF 0 "register_operand" ""))
+   (use (match_operand:SF 1 "register_operand" ""))]
   "TARGET_USE_FANCY_MATH_387
    && flag_unsafe_math_optimizations"
 {
@@ -15692,8 +15692,8 @@
 })
 
 (define_expand "log1pdf2"
-  [(use (match_operand:XF 0 "register_operand" ""))
-   (use (match_operand:XF 1 "register_operand" ""))]
+  [(use (match_operand:DF 0 "register_operand" ""))
+   (use (match_operand:DF 1 "register_operand" ""))]
   "TARGET_USE_FANCY_MATH_387
    && flag_unsafe_math_optimizations"
 {

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