2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #452 from Subv/psetp

ShadersDecompiler: Added decoding for the PSETP instruction.
This commit is contained in:
Sebastian Valle 2018-05-20 20:00:55 -05:00 committed by GitHub
commit 6486544e09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -320,6 +320,7 @@ public:
ISETP_C, ISETP_C,
ISETP_IMM, ISETP_IMM,
ISETP_R, ISETP_R,
PSETP,
}; };
enum class Type { enum class Type {
@ -331,6 +332,7 @@ public:
FloatSet, FloatSet,
FloatSetPredicate, FloatSetPredicate,
IntegerSetPredicate, IntegerSetPredicate,
PredicateSetPredicate,
Conversion, Conversion,
Unknown, Unknown,
}; };
@ -477,6 +479,7 @@ private:
INST("010010110110----", Id::ISETP_C, Type::IntegerSetPredicate, "ISETP_C"), INST("010010110110----", Id::ISETP_C, Type::IntegerSetPredicate, "ISETP_C"),
INST("010110110110----", Id::ISETP_R, Type::IntegerSetPredicate, "ISETP_R"), INST("010110110110----", Id::ISETP_R, Type::IntegerSetPredicate, "ISETP_R"),
INST("0011011-0110----", Id::ISETP_IMM, Type::IntegerSetPredicate, "ISETP_IMM"), INST("0011011-0110----", Id::ISETP_IMM, Type::IntegerSetPredicate, "ISETP_IMM"),
INST("0101000010010---", Id::PSETP, Type::PredicateSetPredicate, "PSETP"),
}; };
#undef INST #undef INST
std::stable_sort(table.begin(), table.end(), [](const auto& a, const auto& b) { std::stable_sort(table.begin(), table.end(), [](const auto& a, const auto& b) {