[code-reflection] RFR: [samples] Apply type conversion for the int-shift function after the new result op has been built

duke duke at openjdk.org
Wed Aug 20 08:25:59 UTC 2025


On Wed, 20 Aug 2025 08:17:48 GMT, Juan Fumero <duke at openjdk.org> wrote:

> This patch fixes the example suite for the `MathOptimizer` example for the integer function transformation.
> 
> To me the transformation correct, we need to convert back from `int` to `double`:
> 
> 
> newResult = blockBuilder.op(JavaOp.conv(JavaType.DOUBLE, newResult));
> 
> 
> How to test it?
> 
> 
> java --enable-preview -cp target/crsamples-1.0-SNAPSHOT.jar oracle.code.samples.MathOptimizer

@jjfumero 
Your change (at version 89e0bdbfd0bc23169a6cde57d16c9137fcf66087) is now ready to be sponsored by a Committer.

-------------

PR Comment: https://git.openjdk.org/babylon/pull/528#issuecomment-3204799577


More information about the babylon-dev mailing list