% for fixed in ['m0', 'vcc', 'exec', 'scc']:
Operand ${fixed}(Temp tmp) {
% if fixed == 'vcc' or fixed == 'exec':
- assert(tmp.regClass() == lm);
+ //vcc_hi and exec_hi can still be used in wave32
+ assert(tmp.type() == RegType::sgpr && tmp.bytes() <= 8);
% endif
Operand op(tmp);
op.setFixed(aco::${fixed});
Definition ${fixed}(Definition def) {
% if fixed == 'vcc' or fixed == 'exec':
- assert(def.regClass() == lm);
+ //vcc_hi and exec_hi can still be used in wave32
+ assert(def.regClass().type() == RegType::sgpr && def.bytes() <= 8);
% endif
def.setFixed(aco::${fixed});
return def;
Definition hint_${fixed}(Definition def) {
% if fixed == 'vcc' or fixed == 'exec':
- assert(def.regClass() == lm);
+ //vcc_hi and exec_hi can still be used in wave32
+ assert(def.regClass().type() == RegType::sgpr && def.bytes() <= 8);
% endif
def.setHint(aco::${fixed});
return def;