ir: Add A64-specific opcodes for getting and setting raw NZCV values

This will be necessary to implement the flag manipulation and flag
format instructions.
This commit is contained in:
Lioncash
2019-03-06 13:54:09 -05:00
committed by MerryMage
parent 4f937c1ee1
commit 597a8be5d5
5 changed files with 29 additions and 0 deletions

View File

@@ -124,6 +124,7 @@ bool Inst::ReadsFromCPSR() const {
case Opcode::A32GetVFlag:
case Opcode::A32GetGEFlags:
case Opcode::A64GetCFlag:
case Opcode::A64GetNZCVRaw:
case Opcode::ConditionalSelect32:
case Opcode::ConditionalSelect64:
case Opcode::ConditionalSelectNZCV:
@@ -146,6 +147,7 @@ bool Inst::WritesToCPSR() const {
case Opcode::A32OrQFlag:
case Opcode::A32SetGEFlags:
case Opcode::A32SetGEFlagsCompressed:
case Opcode::A64SetNZCVRaw:
case Opcode::A64SetNZCV:
return true;