quadlib.asm bugfix

Jeffrey A Law law@cygnus.com
Fri Feb 18 19:03:00 GMT 2000


Two of wrapper routines for the 128bit FP comparison support on the PA
passed the wrong set of flags to the comparison routine.  Most likely
this happened because HP's documentation is incorrect.

This bug was found by our testsuites while I was trying to finish up 128bit
FP support for the PA32 toolchain.  The remainder of the 128bit FP support
should follow shortly.

	* pa/quadlib.asm (_U_QFgt, _U_Qfge): Fix flags for _U_Qfcmp call.

Index: quadlib.asm
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/pa/quadlib.asm,v
retrieving revision 1.1
diff -c -3 -p -r1.1 quadlib.asm
*** quadlib.asm	1999/09/07 10:23:53	1.1
--- quadlib.asm	2000/02/19 03:01:31
*************** _U_Qfgt
*** 125,131 ****
  	; Load the additional argument and call the comparison routine.
  	;
  	bl _U_Qfcmp,%r2
! 	ldi 23,%r24
  
  	;
  	; The return from _U_Qfcmp is the masked C bit from the FP
--- 125,131 ----
  	; Load the additional argument and call the comparison routine.
  	;
  	bl _U_Qfcmp,%r2
! 	ldi 17,%r24
  
  	;
  	; The return from _U_Qfcmp is the masked C bit from the FP
*************** _U_Qfge
*** 162,168 ****
  	; Load the additional argument and call the comparison routine.
  	;
  	bl _U_Qfcmp,%r2
! 	ldi 23,%r24
  
  	;
  	; The return from _U_Qfcmp is the masked C bit from the FP
--- 162,168 ----
  	; Load the additional argument and call the comparison routine.
  	;
  	bl _U_Qfcmp,%r2
! 	ldi 21,%r24
  
  	;
  	; The return from _U_Qfcmp is the masked C bit from the FP






More information about the Gcc-patches mailing list