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]

[PATCH] s390 fix subdf md pattern


Hi,

last year I've posted a patch introducing a wrong insn pattern.
The attached patch fixes this.

bootstrapped on s390 
seem to fix two java testcases:

FAIL: Process_1 output - gij test
FAIL: Process_3 -O3 output - bytecode->native test

OK?

Bye,

Andreas


2004-10-20  Andreas Krebbel  <krebbel1@de.ibm.com>

	* config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.

Index: gcc/config/s390/s390.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/s390/s390.md,v
retrieving revision 1.135
diff -p -c -r1.135 s390.md
*** gcc/config/s390/s390.md	11 Oct 2004 20:54:07 -0000	1.135
--- gcc/config/s390/s390.md	19 Oct 2004 13:59:02 -0000
***************
*** 4114,4120 ****
  			   (match_operand:DF 2 "general_operand" "f,R"))
  		 (match_operand:DF 3 "const0_operand" "")))
     (set (match_operand:DF 0 "register_operand" "=f,f")
! 	(plus:DF (match_dup 1) (match_dup 2)))]
    "s390_match_ccmode (insn, CCSmode) && TARGET_HARD_FLOAT && TARGET_IEEE_FLOAT"
    "@
     sdbr\t%0,%2
--- 4114,4120 ----
  			   (match_operand:DF 2 "general_operand" "f,R"))
  		 (match_operand:DF 3 "const0_operand" "")))
     (set (match_operand:DF 0 "register_operand" "=f,f")
! 	(minus:DF (match_dup 1) (match_dup 2)))]
    "s390_match_ccmode (insn, CCSmode) && TARGET_HARD_FLOAT && TARGET_IEEE_FLOAT"
    "@
     sdbr\t%0,%2


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