Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: src/IceInstMIPS32.def

Issue 1993773004: [Subzero][MIPS32] Addition of bool folding machinery and implementation of conditional branches (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressed review comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceInstMIPS32.def
diff --git a/src/IceInstMIPS32.def b/src/IceInstMIPS32.def
index 99b58e96bdf99b6ec518d13bbd754e0e4110bf7d..d84890e06a3d42826afe8ae707cd6bb7f874a252 100644
--- a/src/IceInstMIPS32.def
+++ b/src/IceInstMIPS32.def
@@ -1,4 +1,4 @@
-//===- subzero/src/IceInstMIPS32.def - X-Macros for MIPS32 insts --*- C++ -*-===//
+//===- subzero/src/IceInstMIPS32.def - X-Macros for MIPS insts --*- C++ -*-===//
//
// The Subzero Code Generator
//
@@ -171,7 +171,18 @@
X(Reg_I64PAIR_Last, = Reg_LOHI) \
//define X(val, init)
-// TODO(reed kotler): add condition code tables, etc.
-
+#define ICEINSTMIPS32COND_TABLE \
+ /* enum value, opposite, emit */ \
+ X(EQ, NE, "eq") /* equal */ \
+ X(NE, EQ, "ne") /* not equal */ \
+ X(EQZ, NEZ, "eqz") /* signed equal to zero */ \
+ X(NEZ, EQZ, "nez") /* signed not equal to zero */ \
+ X(GEZ, LTZ, "gez") /* signed greater than or equal to zero */ \
+ X(LTZ, GEZ, "ltz") /* signed less than to zero */ \
+ X(GTZ, LEZ, "gtz") /* signed greater than to zero */ \
+ X(LEZ, GTZ, "lez") /* signed less than or equal to zero */ \
+ X(AL, kNone, "") /* always (unconditional) */ \
+ X(kNone, kNone, "??") /* special condition / none */
+//#define X(tag, opp, emit)
#endif // SUBZERO_SRC_ICEINSTMIPS32_DEF
« src/IceInstMIPS32.h ('K') | « src/IceInstMIPS32.cpp ('k') | src/IceTargetLoweringMIPS32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698