Reproduction steps:
1. Open the attached “ASDQWE” project
2. Open the “Asset/Scenes/SampleScene.unity” Scene
3. Open the Burst Inspector (Jobs > Burst > Open Inspector…)
4. Observe the “Bug.Testing.ConstantPow(MaxMath.float8&, MaxMath.float8&)” method
Expected result: “Bug.Testing.ConstantPow(MaxMath.float8&, MaxMath.float8&)” method performs a series of multiplications instead of pow calls
Actual result: “Bug.Testing.ConstantPow(MaxMath.float8&, MaxMath.float8&)” method ignores the Constant.IsConstantExpression() check and contains calls to pow
Reproducible with: 1.7.4 (2021.3.27f1), 1.8.3(2021.3.27f1), 1.8.4 (2021.3.27f1, 2022.3.2f1, 2023.1.0f1, 2023.2.0a19)
Reproducible on: Intel MacOS 13.4