[X86][SSE] combineBitcastvxi1 - add support for bitcasting to non-scalar integers
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 25 Apr 2019 09:34:36 +0000 (09:34 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 25 Apr 2019 09:34:36 +0000 (09:34 +0000)
commit0a7d1b3ce1d2ff51e49c260d022bb99bfb4e1dc7
treeaa9537a5b579d72484539e8680a1011b4c37c1ce
parentd144572dac23c3af6a1ea5efbdffd8813138e216
[X86][SSE] combineBitcastvxi1 - add support for bitcasting to non-scalar integers

Truncate the movmsk scalar integer result to the equivalent scalar integer width as before but then bitcast to the requested type.

We still have the issue identified in PR41594 but D61114 should handle this.

llvm-svn: 359176
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/bitcast-vector-bool.ll