https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275322

--- Comment #2 from Cheyenne Wills <[email protected]> ---
(In reply to Kyle Evans from comment #1)

I might be able to reduce the C code even more if needed.

Some background on how I stumbled on this.

I'm trying to debug some of my code (assembly) that uses SSE2 floating point
instructions.  The code runs fine under Linux, and I wanted to see if it could
be ported to freebsd.  The code ended up in a loop where it is trying to scale
a floating point number, and when I was trying to debug the code I was getting
inconsistent results when I was running the program under the gdb debugger.

The assembly source does set mxcsr to control how underflow/overflow, etc, are
handled within the assembly code.  The mxcsr settings are relied upon within
the assembly code and the mxcsr register is reset back to value that it was
when the assembly code got control from the calling C code.  The mxcsr register
is set back to the "original" value whenever the assembly code switches back to
any C functions, or other system calls.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to