Lines Matching refs:execution_mode

1264 nir_is_float_control_signed_zero_inf_nan_preserve(unsigned execution_mode, unsigned bit_size)
1266 return (16 == bit_size && execution_mode & FLOAT_CONTROLS_SIGNED_ZERO_INF_NAN_PRESERVE_FP16) ||
1267 (32 == bit_size && execution_mode & FLOAT_CONTROLS_SIGNED_ZERO_INF_NAN_PRESERVE_FP32) ||
1268 (64 == bit_size && execution_mode & FLOAT_CONTROLS_SIGNED_ZERO_INF_NAN_PRESERVE_FP64);
1272 nir_is_denorm_flush_to_zero(unsigned execution_mode, unsigned bit_size)
1274 return (16 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_FLUSH_TO_ZERO_FP16) ||
1275 (32 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_FLUSH_TO_ZERO_FP32) ||
1276 (64 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_FLUSH_TO_ZERO_FP64);
1280 nir_is_denorm_preserve(unsigned execution_mode, unsigned bit_size)
1282 return (16 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_PRESERVE_FP16) ||
1283 (32 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_PRESERVE_FP32) ||
1284 (64 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_PRESERVE_FP64);
1288 nir_is_rounding_mode_rtne(unsigned execution_mode, unsigned bit_size)
1290 return (16 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP16) ||
1291 (32 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP32) ||
1292 (64 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP64);
1296 nir_is_rounding_mode_rtz(unsigned execution_mode, unsigned bit_size)
1298 return (16 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP16) ||
1299 (32 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP32) ||
1300 (64 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP64);
1304 nir_has_any_rounding_mode_rtz(unsigned execution_mode)
1306 return (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP16) ||
1307 (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP32) ||
1308 (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP64);
1312 nir_has_any_rounding_mode_rtne(unsigned execution_mode)
1314 return (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP16) ||
1315 (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP32) ||
1316 (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP64);
1320 nir_get_rounding_mode_from_float_controls(unsigned execution_mode,
1328 if (nir_is_rounding_mode_rtz(execution_mode, bit_size))
1330 if (nir_is_rounding_mode_rtne(execution_mode, bit_size))
1336 nir_has_any_rounding_mode_enabled(unsigned execution_mode)
1339 nir_has_any_rounding_mode_rtne(execution_mode) ||
1340 nir_has_any_rounding_mode_rtz(execution_mode);