[code-reflection] RFR: [samples] Apply type conversion for the int-shift function after the new result op has been built
Juan Fumero
duke at openjdk.org
Wed Aug 20 08:25:59 UTC 2025
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
-------------
Commit messages:
- [samples] Apply type conversion for the int-shift function after the new result op has been built
Changes: https://git.openjdk.org/babylon/pull/528/files
Webrev: https://webrevs.openjdk.org/?repo=babylon&pr=528&range=00
Stats: 21 lines in 3 files changed: 18 ins; 3 del; 0 mod
Patch: https://git.openjdk.org/babylon/pull/528.diff
Fetch: git fetch https://git.openjdk.org/babylon.git pull/528/head:pull/528
PR: https://git.openjdk.org/babylon/pull/528
More information about the babylon-dev
mailing list