]> granicus.if.org Git - llvm/commit
[X86] AVX512: Move compressed displacement logic to TD
authorAdam Nemet <anemet@apple.com>
Thu, 17 Jul 2014 17:04:34 +0000 (17:04 +0000)
committerAdam Nemet <anemet@apple.com>
Thu, 17 Jul 2014 17:04:34 +0000 (17:04 +0000)
commitccba8025da66cf2d757ece962d35b99ead062d46
tree1677c92003cbeac647681f43e1d48fc3a49c3d1e
parent30cced119be0dc3fffdd553cba575c9c27e93bf3
[X86] AVX512: Move compressed displacement logic to TD

This does not actually move the logic yet but reimplements it in the Tablegen
language.  Then asserts that the new implementation results in the same value.

The next patch will remove the assert and the temporary use of the TSFlags and
remove the C++ implementation.

The formula requires a limited form of the logical left and right operators.
I implemented these with the bit-extract/insert operator (i.e. blah{bits}).

No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213278 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
lib/Target/X86/X86InstrFormats.td