brw_inst *inst, uint64_t v) \
{ \
assert(assertions); \
+ (void) brw; \
brw_inst_set_bits(inst, high, low, v); \
} \
static inline uint64_t \
brw_inst *inst) \
{ \
assert(assertions); \
+ (void) brw; \
return brw_inst_bits(inst, high, low); \
}
/* 8: */ 33, 33)
F8(flag_subreg_nr, /* 4+ */ 89, 89, /* 8+ */ 32, 32)
F(saturate, 31, 31)
-FC(branch_control, 30, 30, brw->gen >= 8)
F(debug_control, 30, 30)
F(cmpt_control, 29, 29)
+FC(branch_control, 28, 28, brw->gen >= 8)
F(acc_wr_control, 28, 28)
F(cond_modifier, 27, 24)
FC(math_function, 27, 24, brw->gen >= 6)
brw_inst_set_##name(const struct brw_context *brw, brw_inst *inst, int16_t v) \
{ \
assert(assertions); \
- assert(v <= (1 << 16) - 1); \
- assert(v > -(1 << 16)); \
+ (void) brw; \
brw_inst_set_bits(inst, high, low, (uint16_t) v); \
} \
static inline int16_t \
brw_inst_##name(const struct brw_context *brw, brw_inst *inst) \
{ \
assert(assertions); \
+ (void) brw; \
return brw_inst_bits(inst, high, low); \
}
static inline int
brw_inst_imm_d(const struct brw_context *brw, brw_inst *insn)
{
+ (void) brw;
return brw_inst_bits(insn, 127, 96);
}
static inline unsigned
brw_inst_imm_ud(const struct brw_context *brw, brw_inst *insn)
{
+ (void) brw;
return brw_inst_bits(insn, 127, 96);
}
brw_inst_imm_f(const struct brw_context *brw, brw_inst *insn)
{
fi_type ft;
+ (void) brw;
ft.u = brw_inst_bits(insn, 127, 96);
return ft.f;
}
brw_inst_set_imm_d(const struct brw_context *brw,
brw_inst *insn, int value)
{
+ (void) brw;
return brw_inst_set_bits(insn, 127, 96, value);
}
brw_inst_set_imm_ud(const struct brw_context *brw,
brw_inst *insn, unsigned value)
{
+ (void) brw;
return brw_inst_set_bits(insn, 127, 96, value);
}
brw_inst *insn, float value)
{
fi_type ft;
+ (void) brw;
ft.f = value;
brw_inst_set_bits(insn, 127, 96, ft.u);
}