Adding pseudo code for all ucode ops from AMD docs.

This commit is contained in:
Ben Vanik
2015-12-05 03:10:45 -08:00
parent 4bac581d01
commit 0058cae901
3 changed files with 629 additions and 87 deletions

View File

@@ -416,9 +416,9 @@ struct ParsedAluInstruction {
bool is_vector_type() const { return type == Type::kVector; }
bool is_scalar_type() const { return type == Type::kScalar; }
// Opcode for the instruction if it is a vector type.
ucode::AluVectorOpcode vector_opcode = ucode::AluVectorOpcode::kADDv;
ucode::AluVectorOpcode vector_opcode = ucode::AluVectorOpcode::kAdd;
// Opcode for the instruction if it is a scalar type.
ucode::AluScalarOpcode scalar_opcode = ucode::AluScalarOpcode::kADDs;
ucode::AluScalarOpcode scalar_opcode = ucode::AluScalarOpcode::kAdds;
// Friendly name of the instruction.
const char* opcode_name = nullptr;