[LLVMdev] Signed NaNs in APFloat arithmetic

Stephen Canon scanon at apple.com
Fri Aug 8 11:29:35 PDT 2014


> On Aug 8, 2014, at 11:22 AM, David Jones <djones at xtreme-eda.com> wrote:
> 
> A quick survey from my various manuals:
> - m68k has negate and absolute value instructions.
> - so does x87
> - so does PA-RISC
> - but SPARC does not.
> - and neither does x86 SSE (although bit fiddling might be real cheap here)

[V]AND[SS|SD|PS|PD] / [V]ANDN[SS|SD|PS|PD] / [V]OR[SS|SD|PS|PD] is by far the preferred idiom to perform these operations on SSE/AVX.

– Steve



More information about the llvm-dev mailing list