aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86ISelLowering.h
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-08-10 23:25:42 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-08-10 23:25:42 +0000
commit045573ce21282ee7d1c58e57d00a77ede8c732da (patch)
tree1412848c3a40b83b00a3c588b167b1e2faecd713 /lib/Target/X86/X86ISelLowering.h
parent625051be7e30d70ba44878a0f3b4d4195902a8ef (diff)
downloadexternal_llvm-045573ce21282ee7d1c58e57d00a77ede8c732da.zip
external_llvm-045573ce21282ee7d1c58e57d00a77ede8c732da.tar.gz
external_llvm-045573ce21282ee7d1c58e57d00a77ede8c732da.tar.bz2
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
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.h')
-rw-r--r--lib/Target/X86/X86ISelLowering.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.h b/lib/Target/X86/X86ISelLowering.h
index 3556579..61e304d 100644
--- a/lib/Target/X86/X86ISelLowering.h
+++ b/lib/Target/X86/X86ISelLowering.h
@@ -248,6 +248,9 @@ namespace llvm {
// PTEST - Vector bitwise comparisons
PTEST,
+ // TESTP - Vector packed fp sign bitwise comparisons
+ TESTP,
+
// VASTART_SAVE_XMM_REGS - Save xmm argument registers to the stack,
// according to %al. An operator is needed so that this can be expanded
// with control flow.