hsail: add a wavesize case statement to register operand code
This commit is contained in:
parent
69c2d86d68
commit
3bb3db6194
1 changed files with 38 additions and 30 deletions
|
@ -224,6 +224,12 @@ findRegDataType(unsigned opOffset, const BrigObject *obj)
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case BRIG_KIND_OPERAND_OPERAND_LIST:
|
||||||
{
|
{
|
||||||
const BrigOperandOperandList *op =
|
const BrigOperandOperandList *op =
|
||||||
|
@ -252,6 +258,8 @@ findRegDataType(unsigned opOffset, const BrigObject *obj)
|
||||||
} else {
|
} else {
|
||||||
fatal("OperandList: bad operand size %d\n", num_bytes);
|
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 {
|
} else {
|
||||||
fatal("OperandList: bad operand kind %d\n", op_p->kind);
|
fatal("OperandList: bad operand kind %d\n", op_p->kind);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue