hsail: add a wavesize case statement to register operand code

This commit is contained in:
Brandon Potter 2016-12-02 18:01:52 -05:00
parent 69c2d86d68
commit 3bb3db6194

View file

@ -224,6 +224,12 @@ findRegDataType(unsigned opOffset, const BrigObject *obj)
}
break;
case BRIG_KIND_OPERAND_WAVESIZE:
{
BrigRegisterKind reg_kind = BRIG_REGISTER_KIND_DOUBLE;
return BrigRegOperandInfo((BrigKind16_t)baseOp->kind, reg_kind);
}
case BRIG_KIND_OPERAND_OPERAND_LIST:
{
const BrigOperandOperandList *op =
@ -252,6 +258,8 @@ findRegDataType(unsigned opOffset, const BrigObject *obj)
} else {
fatal("OperandList: bad operand size %d\n", num_bytes);
}
} else if (op_p->kind == BRIG_KIND_OPERAND_WAVESIZE) {
reg_kind = BRIG_REGISTER_KIND_DOUBLE;
} else {
fatal("OperandList: bad operand kind %d\n", op_p->kind);
}