Add AVX matching patterns to Packed Bit Test intrinsics.
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 10 Aug 2010 23:25:42 +0000 (23:25 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 10 Aug 2010 23:25:42 +0000 (23:25 +0000)
commit045573ce21282ee7d1c58e57d00a77ede8c732da
tree1412848c3a40b83b00a3c588b167b1e2faecd713
parent625051be7e30d70ba44878a0f3b4d4195902a8ef
Add AVX matching patterns to Packed Bit Test intrinsics.

Apply the same approach of SSE4.1 ptest intrinsics but
create a new x86 node "testp" since AVX introduces
vtest{ps}{pd} instructions which set ZF and CF depending
on sign bit AND and ANDN of packed floating-point sources.

This is slightly different from what the "ptest" does.
Tests comming with the other 256 intrinsics tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110744 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
lib/Target/X86/X86InstrFragmentsSIMD.td
lib/Target/X86/X86InstrSSE.td