IR: Add ConditionalSelectNZCV instruction

This commit is contained in:
MerryMage
2018-02-04 23:07:51 +00:00
parent 12c6f841c2
commit dd2a6684fe
4 changed files with 10 additions and 0 deletions

View File

@@ -98,6 +98,10 @@ U64 IREmitter::ConditionalSelect(Cond cond, const U64& a, const U64& b) {
return Inst<U64>(Opcode::ConditionalSelect64, Value{cond}, a, b);
}
NZCV IREmitter::ConditionalSelect(Cond cond, const NZCV& a, const NZCV& b) {
return Inst<NZCV>(Opcode::ConditionalSelectNZCV, Value{cond}, a, b);
}
U32U64 IREmitter::ConditionalSelect(Cond cond, const U32U64& a, const U32U64& b) {
ASSERT(a.GetType() == b.GetType());
if (a.GetType() == Type::U32) {