diff --git a/src/test/smali/junit-tests/InstructionTests/Format22t/Format22t.smali b/src/test/smali/junit-tests/InstructionTests/Format22t/Format22t.smali new file mode 100644 index 00000000..bb2654cd --- /dev/null +++ b/src/test/smali/junit-tests/InstructionTests/Format22t/Format22t.smali @@ -0,0 +1,154 @@ +.class public LFormat22t; +.super Ljava/lang/Object; +.source "Format22t.smali" + +.method public constructor ()V + .registers 1 + invoke-direct {p0}, Ljava/lang/Object;->()V + return-void +.end method + + +.method public test_if-eq()V + .registers 2 + .annotation runtime Lorg/junit/Test; + .end annotation + + const v0, 23 + const v1, 23 + + if-eq v0, v1, label1: + + invoke-static {}, Lorg/junit/Assert;->fail()V + + label1: + const v1, 24 + + if-eq v0, v1, label2: + return-void + + label2: + invoke-static {}, Lorg/junit/Assert;->fail()V + + return-void +.end method + +.method public test_if-ne()V + .registers 2 + .annotation runtime Lorg/junit/Test; + .end annotation + + const v0, 23 + const v1, 24 + + if-ne v0, v1, label1: + + invoke-static {}, Lorg/junit/Assert;->fail()V + + label1: + const v1, 23 + + if-ne v0, v1, label2: + return-void + + label2: + invoke-static {}, Lorg/junit/Assert;->fail()V + + return-void +.end method + +.method public test_if-lt()V + .registers 2 + .annotation runtime Lorg/junit/Test; + .end annotation + + const v0, 23 + const v1, 24 + + if-lt v0, v1, label1: + + invoke-static {}, Lorg/junit/Assert;->fail()V + + label1: + const v1, 23 + + if-lt v0, v1, label2: + return-void + + label2: + invoke-static {}, Lorg/junit/Assert;->fail()V + + return-void +.end method + +.method public test_if-ge()V + .registers 2 + .annotation runtime Lorg/junit/Test; + .end annotation + + const v0, 23 + const v1, 23 + + if-ge v0, v1, label1: + + invoke-static {}, Lorg/junit/Assert;->fail()V + + label1: + const v1, 24 + + if-ge v0, v1, label2: + return-void + + label2: + invoke-static {}, Lorg/junit/Assert;->fail()V + + return-void +.end method + +.method public test_if-gt()V + .registers 2 + .annotation runtime Lorg/junit/Test; + .end annotation + + const v0, 23 + const v1, 22 + + if-gt v0, v1, label1: + + invoke-static {}, Lorg/junit/Assert;->fail()V + + label1: + const v1, 23 + + if-gt v0, v1, label2: + return-void + + label2: + invoke-static {}, Lorg/junit/Assert;->fail()V + + return-void +.end method + +.method public test_if-le()V + .registers 2 + .annotation runtime Lorg/junit/Test; + .end annotation + + const v0, 23 + const v1, 23 + + if-le v0, v1, label1: + + invoke-static {}, Lorg/junit/Assert;->fail()V + + label1: + const v1, 22 + + if-le v0, v1, label2: + return-void + + label2: + invoke-static {}, Lorg/junit/Assert;->fail()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 115fae25..662d5bec 100644 --- a/src/test/smali/junit-tests/TestSuite.smali +++ b/src/test/smali/junit-tests/TestSuite.smali @@ -33,6 +33,7 @@ LFormat21s;, LFormat21t;, LFormat22b;, + LFormat22t;, LFormat22x;, LFormat23x;, LFormat30t;,