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]

[PowerPC64] Fix PR24102, floatdisf2_internal2 broken


I'm applying this as obvious, fixing a typo that crept in when I fixed
my original floatdisf2_internal2 to not munge its input.  I don't know
how it happened, as it doesn't seem a likely logic error to make.
Possibly I was renumbering operands and changed a (const_int 2) by
mistake when changing (match_dup 2) to (match_dup 3).

	PR target/24102
	* config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
	check for numbers that need no bit twiddle.

Bootstrapped etc. powerpc64-linux.

Index: gcc/config/rs6000/rs6000.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.md,v
retrieving revision 1.411
diff -u -p -r1.411 rs6000.md
--- gcc/config/rs6000/rs6000.md	23 Sep 2005 14:32:18 -0000	1.411
+++ gcc/config/rs6000/rs6000.md	28 Sep 2005 23:39:50 -0000
@@ -5425,7 +5425,7 @@
    (set (match_dup 0) (plus:DI (match_dup 0)
 			       (const_int 2047)))
    (set (match_dup 4) (compare:CCUNS (match_dup 3)
-				     (const_int 3)))
+				     (const_int 2)))
    (set (match_dup 0) (ior:DI (match_dup 0)
 			      (match_dup 1)))
    (parallel [(set (match_dup 0) (and:DI (match_dup 0)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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