-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(java-input): use correct registers for dup2_x* opcodes
- Loading branch information
Showing
6 changed files
with
98 additions
and
18 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
jadx-core/src/test/java/jadx/tests/integration/others/TestJavaDup2x2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package jadx.tests.integration.others; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import jadx.tests.api.RaungTest; | ||
|
||
import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat; | ||
|
||
public class TestJavaDup2x2 extends RaungTest { | ||
|
||
@Test | ||
public void test() { | ||
assertThat(getClassNodeFromRaung()) | ||
.code() | ||
.containsOne("dArr[0] = 127.5d;"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.version 45.3 | ||
.class others/TestJavaDup2x2 | ||
|
||
.auto frames | ||
|
||
.method public static test([D)V | ||
aload 0 | ||
iconst_0 | ||
aload 0 | ||
iconst_1 | ||
aload 0 | ||
iconst_2 | ||
aload 0 | ||
iconst_3 | ||
ldc2_w 127.5 | ||
dup2_x2 | ||
dastore | ||
dup2_x2 | ||
dastore | ||
dup2_x2 | ||
dastore | ||
dastore | ||
return | ||
.end method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters