sqrt on alphaev6

Brad Lucier lucier@math.purdue.edu
Thu Aug 19 07:57:00 GMT 1999


with -mcpu=ev6 -mieee on alphaev6 with gcc 2.95.1 the following code
is typically generated for sqrt:

	sqrttsu $f16,$f0
	cmpteqsu $f0,$f0,$f10      ; check for NaN?
	fbne $f10,$L836
	jsr $26,sqrt
	ldgp $29,0($26)
$L836:

My question is whether the call to the sqrt routines is necessary
for ev6.  I find 21264hrm.pdf to be somewhat confusing, but it
seems to imply that software completion is not needed on the 21264.

Brad Lucier     lucier@math.purdue.edu


More information about the Gcc mailing list