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

Unified Diff: src/IceTargetLoweringARM32.def

Issue 1151663004: Subzero ARM: do lowerIcmp, lowerBr, and a bit of lowerCall. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: fix Created 5 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
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | tests_lit/llvm2ice_tests/64bit.pnacl.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringARM32.def
diff --git a/src/IceTargetLoweringARM32.def b/src/IceTargetLoweringARM32.def
index baeec2c651d30866132ed51fe148fd94f5f78d77..a004cb66fd4ebfe2555837b77bed5e049b8c6112 100644
--- a/src/IceTargetLoweringARM32.def
+++ b/src/IceTargetLoweringARM32.def
@@ -15,6 +15,19 @@
#ifndef SUBZERO_SRC_ICETARGETLOWERINGARM32_DEF
#define SUBZERO_SRC_ICETARGETLOWERINGARM32_DEF
-// TODO(jvoung): Fill out comparison tables, etc. for 32/64-bit compares.
+// Patterns for lowering icmp.
+#define ICMPARM32_TABLE \
+ /* val, is_signed, swapped64, C_32, C1_64, C2_64 */ \
+ X(Eq, false, false, EQ, EQ, NE) \
+ X(Ne, false, false, NE, NE, EQ) \
+ X(Ugt, false, false, HI, HI, LS) \
+ X(Uge, false, false, CS, CS, CC) \
+ X(Ult, false, false, CC, CC, CS) \
+ X(Ule, false, false, LS, LS, HI) \
+ X(Sgt, true, true, GT, LT, GE) \
+ X(Sge, true, false, GE, GE, LT) \
+ X(Slt, true, false, LT, LT, GE) \
+ X(Sle, true, true, LE, GE, LT) \
+//#define X(val, is_signed, swapped64, C_32, C1_64, C2_64)
#endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_DEF
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | tests_lit/llvm2ice_tests/64bit.pnacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698