benson@HARVARD.HARVARD.EDU (Benson I. Margulies Kendall Square Research Corp.) (03/17/89)
I was trying to get the effect of the following sequence
that I have used with sun cc and inline. It makes a function
that returns the value of %fsr.
.inline _get_fpastatus,2
st %fsr,[%sp+0x44]
ld [%sp+0x44],%o0
.end
I wrote:
long gfpa ()
{
long ret;
asm ( "st %fsr, %0" : "=o" (ret) );
return ret;
}
and cc1 took a segmentation fault. I looked a little, but
I'm afraid that its over my head.
--benson