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

Unified Diff: src/mips64/constants-mips64.h

Issue 2801683003: MIPS[64]: Support for some SIMD operations (8) (Closed)
Patch Set: Rebase Created 3 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/mips64/assembler-mips64.cc ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/constants-mips64.h
diff --git a/src/mips64/constants-mips64.h b/src/mips64/constants-mips64.h
index 27477a20461268d7afef981f56beb1eada954f1e..7215da54fbd040ba06df214805021d9476f0868d 100644
--- a/src/mips64/constants-mips64.h
+++ b/src/mips64/constants-mips64.h
@@ -1092,6 +1092,36 @@ inline Condition NegateFpuCondition(Condition cc) {
}
}
+enum MSABranchCondition {
+ all_not_zero = 0, // Branch If All Elements Are Not Zero
+ one_elem_not_zero, // Branch If At Least One Element of Any Format Is Not
+ // Zero
+ one_elem_zero, // Branch If At Least One Element Is Zero
+ all_zero // Branch If All Elements of Any Format Are Zero
+};
+
+inline MSABranchCondition NegateMSABranchCondition(MSABranchCondition cond) {
+ switch (cond) {
+ case all_not_zero:
+ return one_elem_zero;
+ case one_elem_not_zero:
+ return all_zero;
+ case one_elem_zero:
+ return all_not_zero;
+ case all_zero:
+ return one_elem_not_zero;
+ default:
+ return cond;
+ }
+}
+
+enum MSABranchDF {
+ MSA_BRANCH_B = 0,
+ MSA_BRANCH_H,
+ MSA_BRANCH_W,
+ MSA_BRANCH_D,
+ MSA_BRANCH_V
+};
// Commute a condition such that {a cond b == b cond' a}.
inline Condition CommuteCondition(Condition cc) {
@@ -1918,6 +1948,16 @@ bool InstructionGetters<T>::IsForbiddenAfterBranchInstr(Instr instr) {
case BC1:
case BC1EQZ:
case BC1NEZ:
+ case BZ_V:
+ case BZ_B:
+ case BZ_H:
+ case BZ_W:
+ case BZ_D:
+ case BNZ_V:
+ case BNZ_B:
+ case BNZ_H:
+ case BNZ_W:
+ case BNZ_D:
return true;
break;
default:
« no previous file with comments | « src/mips64/assembler-mips64.cc ('k') | src/mips64/macro-assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698