aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SystemZ/SystemZ.h
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-09-03 15:38:35 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-09-03 15:38:35 +0000
commit8bce43648be1156fdced590beb81aed3915762f1 (patch)
tree729d5544c102b1db03a47ff1a28e75a7177738b0 /lib/Target/SystemZ/SystemZ.h
parentf21c18db9fa8bf185a44287f5700fec3d4a98e14 (diff)
downloadexternal_llvm-8bce43648be1156fdced590beb81aed3915762f1.zip
external_llvm-8bce43648be1156fdced590beb81aed3915762f1.tar.gz
external_llvm-8bce43648be1156fdced590beb81aed3915762f1.tar.bz2
[SystemZ] Add support for TMHH, TMHL, TMLH and TMLL
For now this just handles simple comparisons of an ANDed value with zero. The CC value provides enough information to do any comparison for a 2-bit mask, and some nonzero comparisons with more populated masks, but that's all future work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZ.h')
-rw-r--r--lib/Target/SystemZ/SystemZ.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZ.h b/lib/Target/SystemZ/SystemZ.h
index 051ba1d..1647d93 100644
--- a/lib/Target/SystemZ/SystemZ.h
+++ b/lib/Target/SystemZ/SystemZ.h
@@ -62,6 +62,10 @@ namespace llvm {
const unsigned CCMASK_TM_MIXED_MSB_0 = CCMASK_1;
const unsigned CCMASK_TM_MIXED_MSB_1 = CCMASK_2;
const unsigned CCMASK_TM_ALL_1 = CCMASK_3;
+ const unsigned CCMASK_TM_SOME_0 = CCMASK_TM_ALL_1 ^ CCMASK_ANY;
+ const unsigned CCMASK_TM_SOME_1 = CCMASK_TM_ALL_0 ^ CCMASK_ANY;
+ const unsigned CCMASK_TM_MSB_0 = CCMASK_0 | CCMASK_1;
+ const unsigned CCMASK_TM_MSB_1 = CCMASK_2 | CCMASK_3;
const unsigned CCMASK_TM = CCMASK_ANY;
// Mask assignments for PFD.