summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit113c8703978d2d1d2aacc6841591e3bade9dafbe (patch)
tree0e741aca726f456a81c4631d7b45927b3054ff74 /llvm/lib/Target/SystemZ/SystemZ.h
parentffdeb595ba7e684207d70ea67edd91372604e542 (diff)
downloadbcm5719-llvm-113c8703978d2d1d2aacc6841591e3bade9dafbe.tar.gz
bcm5719-llvm-113c8703978d2d1d2aacc6841591e3bade9dafbe.zip
[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. llvm-svn: 189819
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZ.h')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZ.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZ.h b/llvm/lib/Target/SystemZ/SystemZ.h
index 051ba1dcfb6..1647d93c02d 100644
--- a/llvm/lib/Target/SystemZ/SystemZ.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud