[NFC][CodeGen][X86][AArch64] More tests for 'bit field extract' w/ constants
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 24 Sep 2018 13:24:20 +0000 (13:24 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 24 Sep 2018 13:24:20 +0000 (13:24 +0000)
commitfb697d0f1b38ccb443ed3f485dc24deaf2d7183b
treefcb0dd6e4a74c4ad9864f1d181cb2eeb2fdb8161
parentf432011d33e394788d717809ad8955763efe4d9d
[NFC][CodeGen][X86][AArch64] More tests for 'bit field extract' w/ constants

It would be best to introduce ISD::BitFieldExtract,
because clearly more than one backend faces the same problem.
But for now let's solve this in the x86-specific DAG combine.

https://bugs.llvm.org/show_bug.cgi?id=38938

llvm-svn: 342880
llvm/test/CodeGen/AArch64/extract-bits.ll
llvm/test/CodeGen/X86/extract-bits.ll