Raise psllq and psrlq to absdbl, support in llvm
commit8750eadec178c3877bf116b5b7078ed1576c37e8
authorbsimmers <bsimmers@fb.com>
Tue, 25 Nov 2014 00:27:20 +0000 (24 16:27 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Wed, 26 Nov 2014 06:30:27 +0000 (25 22:30 -0800)
treec1771258d8cffed8e0e0635343134aebb413e7f7
parentfdc4d332b51459947e40e7337daee1a501c11753
Raise psllq and psrlq to absdbl, support in llvm

Summary: We were only using these two instructions to clear the sign bit of a
double to take its absolute value. Use the llvm intrinsic in the llvm backend.

Reviewed By: @jasone

Differential Revision: D1702068
hphp/doc/ir.specification
hphp/runtime/vm/jit/code-gen-x64.cpp
hphp/runtime/vm/jit/vasm-llvm.cpp
hphp/runtime/vm/jit/vasm-x64.cpp
hphp/runtime/vm/jit/vasm-x64.h