summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZ.h
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-10-16 11:10:55 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-10-16 11:10:55 +0000
commitd1a4f579bf45aec933c79292b6b9663581438738 (patch)
tree4da52c699044d9938c699425da7148601d5e89d8 /lib/Target/SystemZ/SystemZ.h
parent5d7e93c0d44a96a416d2f1d1518954d8fed73f40 (diff)
downloadllvm-d1a4f579bf45aec933c79292b6b9663581438738.tar.gz
llvm-d1a4f579bf45aec933c79292b6b9663581438738.tar.bz2
llvm-d1a4f579bf45aec933c79292b6b9663581438738.tar.xz
[SystemZ] Improve handling of SETCC
We previously used the default expansion to SELECT_CC, which in turn would expand to "LHI; BRC; LHI". In most cases it's better to use an IPM-based sequence instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZ.h')
-rw-r--r--lib/Target/SystemZ/SystemZ.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZ.h b/lib/Target/SystemZ/SystemZ.h
index 4a6b4db9d6..dcebbad590 100644
--- a/lib/Target/SystemZ/SystemZ.h
+++ b/lib/Target/SystemZ/SystemZ.h
@@ -68,6 +68,9 @@ namespace llvm {
const unsigned CCMASK_TM_MSB_1 = CCMASK_2 | CCMASK_3;
const unsigned CCMASK_TM = CCMASK_ANY;
+ // The position of the low CC bit in an IPM result.
+ const unsigned IPM_CC = 28;
+
// Mask assignments for PFD.
const unsigned PFD_READ = 1;
const unsigned PFD_WRITE = 2;