search for: sse_sqrt_ps

Displaying 1 result from an estimated 1 matches for "sse_sqrt_ps".

2013 Oct 31
3
[LLVMdev] llvm.sqrt intrinsic undefined behaviour
Hi all, I'm working on a language in which I would like all operations to be well defined. (and efficient) I want to define a sqrt function in my language, that will return NaN for arguments < 0, and NaN for a NaN argument. As far as I know, these semantics map nicely to the SQRTPS SSE instruction, which seems to return NaN on arguments < 0. However, the LLVM lang ref states