Search Issue Tracker

Fixed

Fixed in 1.3.0, 1.4.3

Votes

0

Found in [Package]

1.3.0

1.4.3

Issue ID

BUR-1021

Regression

No

Burst native instructions not called when casting from/to Unity.Mathematics' "half" floating point type

Package: Burst

-

How to reproduce:
1. Open the attached project ("intrinsmath.zip")
2. Observe Jobs in "Reproduce_Avx2_blend_epi32_bugs.cs"
3. Inspect the assembly in the Burst Inspector of the Jobs

Expected results: When casting from f32 to f16 "cvtph2ps" is used and from f16 to f32 "cvtps2ph" is used
Actual results: When casting from f32 to f16 "cvtph2ps" is NOT used and from f16 to f32 "cvtps2ph" is NOT used which is inefficient

Reproducible with: 2018.4.30f1, 2019.4.17f1, 2020.1.17f1, 2020.2.1f1, 2021.1.0a10, 2021.2.0a1 (Burst 1.3.0 - 1.4.3)

Note: Helpful comments in "Reproduce_Avx2_blend_epi32_bugs.cs"

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.