On Thu, 23 Feb 2023 04:44:18 GMT, Martin Doerr <mdo...@openjdk.org> wrote:

> 
> Correct, `extsw` performs a `I2L` conversion. I had thought about this 
> already, but I think my current implementation is more efficient as it 
> combines register moves with the 64 bit extend. Your proposal would generate 
> separate extend and move instructions, right?

Would it be possible to generate a biding cast + move and the recognize the 
pattern in the HS backend and optimize it away as a `extsw` ?

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

PR: https://git.openjdk.org/jdk/pull/12708

Reply via email to