Add BEXTR instruction support
authorYinghai Lu <yinghai@fb.com>
Fri, 16 Dec 2016 16:46:45 +0000 (08:46 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 16 Dec 2016 16:48:05 +0000 (08:48 -0800)
commit9660cdb0d15424e509f3a89cce9a321f15b2d48c
tree512506e75776429c8b4cb97079a8967baeb005cb
parenteac2f407712046f9a3b91c244301467d31ec3819
Add BEXTR instruction support

Summary: BEXTR is an instruction in BMI set, which extract given number of bits from a 64 bit register starting from a given position. The position and size of extracted bits are packed into a one 64bit integer.

Reviewed By: Orvid

Differential Revision: D4316516

fbshipit-source-id: 3f752388763b0e26c506d7d49cf6c05cf28271c0
folly/experimental/Instructions.h
folly/experimental/test/InstructionsTest.cpp [new file with mode: 0644]