Lines Matching refs:execution_mode

1263 nir_is_float_control_signed_zero_inf_nan_preserve(unsigned execution_mode, unsigned bit_size)
1265 return (16 == bit_size && execution_mode & FLOAT_CONTROLS_SIGNED_ZERO_INF_NAN_PRESERVE_FP16) ||
1266 (32 == bit_size && execution_mode & FLOAT_CONTROLS_SIGNED_ZERO_INF_NAN_PRESERVE_FP32) ||
1267 (64 == bit_size && execution_mode & FLOAT_CONTROLS_SIGNED_ZERO_INF_NAN_PRESERVE_FP64);
1271 nir_is_denorm_flush_to_zero(unsigned execution_mode, unsigned bit_size)
1273 return (16 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_FLUSH_TO_ZERO_FP16) ||
1274 (32 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_FLUSH_TO_ZERO_FP32) ||
1275 (64 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_FLUSH_TO_ZERO_FP64);
1279 nir_is_denorm_preserve(unsigned execution_mode, unsigned bit_size)
1281 return (16 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_PRESERVE_FP16) ||
1282 (32 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_PRESERVE_FP32) ||
1283 (64 == bit_size && execution_mode & FLOAT_CONTROLS_DENORM_PRESERVE_FP64);
1287 nir_is_rounding_mode_rtne(unsigned execution_mode, unsigned bit_size)
1289 return (16 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP16) ||
1290 (32 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP32) ||
1291 (64 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP64);
1295 nir_is_rounding_mode_rtz(unsigned execution_mode, unsigned bit_size)
1297 return (16 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP16) ||
1298 (32 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP32) ||
1299 (64 == bit_size && execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP64);
1303 nir_has_any_rounding_mode_rtz(unsigned execution_mode)
1305 return (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP16) ||
1306 (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP32) ||
1307 (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTZ_FP64);
1311 nir_has_any_rounding_mode_rtne(unsigned execution_mode)
1313 return (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP16) ||
1314 (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP32) ||
1315 (execution_mode & FLOAT_CONTROLS_ROUNDING_MODE_RTE_FP64);
1319 nir_get_rounding_mode_from_float_controls(unsigned execution_mode,
1327 if (nir_is_rounding_mode_rtz(execution_mode, bit_size))
1329 if (nir_is_rounding_mode_rtne(execution_mode, bit_size))
1335 nir_has_any_rounding_mode_enabled(unsigned execution_mode)
1338 nir_has_any_rounding_mode_rtne(execution_mode) ||
1339 nir_has_any_rounding_mode_rtz(execution_mode);