diff --git a/src/test/smali/junit-tests/InstructionTests/Format31i/Format31i.smali b/src/test/smali/junit-tests/InstructionTests/Format31i/Format31i.smali new file mode 100644 index 00000000..7d4eed0b --- /dev/null +++ b/src/test/smali/junit-tests/InstructionTests/Format31i/Format31i.smali @@ -0,0 +1,41 @@ +.class public LFormat31i; +.super Ljava/lang/Object; +.source "Format31i.smali" + +.method public constructor ()V + .registers 1 + invoke-direct {p0}, Ljava/lang/Object;->()V + return-void +.end method + +.method public test_const()V + .registers 2 + .annotation runtime Lorg/junit/Test; + .end annotation + + const v0, 0x10000000 + + invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String; + move-result-object v1 + + const-string v0, "268435456" + + invoke-static {v0, v1}, Lorg/junit/Assert;->assertEquals(Ljava/lang/Object;Ljava/lang/Object;)V + return-void +.end method + +.method public test_const-wide-32()V + .registers 2 + .annotation runtime Lorg/junit/Test; + .end annotation + + const-wide/32 v0, 0x10000000 + + invoke-static {v0, v1}, Ljava/lang/Long;->toString(J)Ljava/lang/String; + move-result-object v1 + + const-string v0, "268435456" + + invoke-static {v0, v1}, Lorg/junit/Assert;->assertEquals(Ljava/lang/Object;Ljava/lang/Object;)V + return-void +.end method \ No newline at end of file diff --git a/src/test/smali/junit-tests/TestSuite.smali b/src/test/smali/junit-tests/TestSuite.smali index ec981ed5..13020e42 100644 --- a/src/test/smali/junit-tests/TestSuite.smali +++ b/src/test/smali/junit-tests/TestSuite.smali @@ -39,6 +39,7 @@ LFormat22x;, LFormat23x;, LFormat30t;, + LFormat31i;, LFormat32x;, LFormat35c;, LFormat3rc;