diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-04 05:42:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-04 05:42:48 +0000 |
commit | 2959789c925745dead4ba5ad82617070e82b6c57 (patch) | |
tree | d7ffdf85e2268285a700cb4d28284a8d43401539 /llvm/lib/Target/PowerPC/PPC.h | |
parent | 6be726048e854b1aa495333cb72d4f3a3ce40952 (diff) | |
download | bcm5719-llvm-2959789c925745dead4ba5ad82617070e82b6c57.tar.gz bcm5719-llvm-2959789c925745dead4ba5ad82617070e82b6c57.zip |
encode BLR predicate info for the JIT
llvm-svn: 31450
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPC.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPC.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC.h b/llvm/lib/Target/PowerPC/PPC.h index c8ea2829c46..5d737f692b9 100644 --- a/llvm/lib/Target/PowerPC/PPC.h +++ b/llvm/lib/Target/PowerPC/PPC.h @@ -28,17 +28,17 @@ namespace llvm { class MachineCodeEmitter; namespace PPC { - /// Predicate - These are "(BO << 5) | BI" for various predicates. + /// Predicate - These are "(BI << 5) | BO" for various predicates. enum Predicate { - PRED_ALWAYS = (20 << 5) | 0, - PRED_LT = (12 << 5) | 0, - PRED_LE = ( 4 << 5) | 1, - PRED_EQ = (12 << 5) | 2, - PRED_GE = ( 4 << 5) | 0, - PRED_GT = (12 << 5) | 1, - PRED_NE = ( 4 << 5) | 2, - PRED_UN = (12 << 5) | 3, - PRED_NU = ( 4 << 5) | 3 + PRED_ALWAYS = (0 << 5) | 20, + PRED_LT = (0 << 5) | 12, + PRED_LE = (1 << 5) | 4, + PRED_EQ = (2 << 5) | 12, + PRED_GE = (0 << 5) | 4, + PRED_GT = (1 << 5) | 12, + PRED_NE = (2 << 5) | 4, + PRED_UN = (3 << 5) | 12, + PRED_NU = (3 << 5) | 4 }; } |