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_opc_return_1.java
     16 .class public dot.junit.opcodes.opc_return.d.T_opc_return_1
     17 .super java/lang/Object
     18 
     19 
     20 .method public <init>()V
     21 .limit regs 1
     22 
     23        invoke-direct {v0}, java/lang/Object/<init>()V
     24        return-void
     25 .end method
     26 
     27 .method public run()I
     28 .limit regs 10
     29 
     30     const v1, 1
     31     const v2, 2
     32     const v3, 3
     33 
     34     const v4, 0xdddd
     35 
     36     invoke-static {}, dot/junit/opcodes/opc_return/d/T_opc_return_1/test()I
     37     move-result v6
     38 
     39     if-ne v4, v6, Label0
     40 
     41     const v4, 1
     42     if-ne v1, v4, Label0
     43 
     44     const v4, 2
     45     if-ne v2, v4, Label0
     46 
     47     const v4, 3
     48     if-ne v3, v4, Label0
     49 
     50     const v0, 123456
     51     return v0
     52 
     53 Label0:
     54     const v0, 0
     55     return v0
     56 .end method
     57 
     58 .method private static test()I
     59 .limit regs 6
     60 
     61     const v0, 9999
     62     const v1, 0xaaa
     63     const v2, 0xbbbb
     64     const v3, 0xcccc
     65 
     66     const v4, 0xdddd
     67     return v4
     68 .end method
     69 
     70 
     71