Home | History | Annotate | Download | only in d
      1 ; Copyright (C) 2008 The Android Open Source Project
      2 ;
      3 ; Licensed under the Apache License, Version 2.0 (the "License");
      4 ; you may not use this file except in compliance with the License.
      5 ; You may obtain a copy of the License at
      6 ;
      7 ;      http://www.apache.org/licenses/LICENSE-2.0
      8 ;
      9 ; Unless required by applicable law or agreed to in writing, software
     10 ; distributed under the License is distributed on an "AS IS" BASIS,
     11 ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 ; See the License for the specific language governing permissions and
     13 ; limitations under the License.
     14 
     15 .source T_invoke_direct_14.java
     16 .class public dot.junit.opcodes.invoke_direct.d.T_invoke_direct_14
     17 .super java/lang/Object
     18 
     19 
     20 .method public <init>()V
     21 .limit regs 2
     22 
     23        invoke-direct {v1}, java/lang/Object/<init>()V
     24        return-void
     25 .end method
     26 
     27 .method private test(II)I
     28 .limit regs 7
     29        const v0, 999
     30        const v1, 888
     31        const v2, 777
     32 
     33        div-int v4, v5, v6
     34 
     35        return v4
     36 .end method
     37 
     38 .method public run()I
     39 .limit regs 7
     40        const v0, 111
     41        const v1, 222
     42        const v2, 333
     43 
     44        const v3, 50
     45        const v4, 25
     46 
     47        invoke-direct {v6, v3}, dot/junit/opcodes/invoke_direct/d/T_invoke_direct_14/test(II)I
     48        move-result v3
     49 
     50        const v4, 2
     51        if-ne v3, v4, Label30
     52 
     53        const v4, 111
     54        if-ne v0, v4, Label30
     55 
     56        const v4, 222
     57        if-ne v1, v4, Label30
     58 
     59        const v4, 333
     60        if-ne v2, v4, Label30
     61 
     62        const v0, 1
     63        return v0
     64 Label30:
     65         const v0, 0
     66         return v0
     67 
     68 .end method
     69 
     70 
     71