intel/compiler: support negate and abs of half float immediates
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:

committed by
Iago Toral Quiroga

parent
f0e6dacee5
commit
f575277f7e
@@ -605,7 +605,8 @@ brw_negate_immediate(enum brw_reg_type type, struct brw_reg *reg)
|
|||||||
case BRW_REGISTER_TYPE_V:
|
case BRW_REGISTER_TYPE_V:
|
||||||
assert(!"unimplemented: negate UV/V immediate");
|
assert(!"unimplemented: negate UV/V immediate");
|
||||||
case BRW_REGISTER_TYPE_HF:
|
case BRW_REGISTER_TYPE_HF:
|
||||||
assert(!"unimplemented: negate HF immediate");
|
reg->ud ^= 0x80008000;
|
||||||
|
return true;
|
||||||
case BRW_REGISTER_TYPE_NF:
|
case BRW_REGISTER_TYPE_NF:
|
||||||
unreachable("no NF immediates");
|
unreachable("no NF immediates");
|
||||||
}
|
}
|
||||||
@@ -651,7 +652,8 @@ brw_abs_immediate(enum brw_reg_type type, struct brw_reg *reg)
|
|||||||
case BRW_REGISTER_TYPE_V:
|
case BRW_REGISTER_TYPE_V:
|
||||||
assert(!"unimplemented: abs V immediate");
|
assert(!"unimplemented: abs V immediate");
|
||||||
case BRW_REGISTER_TYPE_HF:
|
case BRW_REGISTER_TYPE_HF:
|
||||||
assert(!"unimplemented: abs HF immediate");
|
reg->ud &= ~0x80008000;
|
||||||
|
return true;
|
||||||
case BRW_REGISTER_TYPE_NF:
|
case BRW_REGISTER_TYPE_NF:
|
||||||
unreachable("no NF immediates");
|
unreachable("no NF immediates");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user