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_return_wide_1.java 16 .class public dot.junit.opcodes.return_wide.d.T_return_wide_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-wide v4, 0xdddd 35 36 invoke-static {}, dot/junit/opcodes/return_wide/d/T_return_wide_1/test()J 37 move-result-wide v6 38 39 cmp-long v0, v4, v6 40 if-nez v0, Label0 41 42 const v4, 1 43 if-ne v1, v4, Label0 44 45 const v4, 2 46 if-ne v2, v4, Label0 47 48 const v4, 3 49 if-ne v3, v4, Label0 50 51 const v0, 123456 52 return v0 53 54 Label0: 55 const v0, 0 56 return v0 57 .end method 58 59 .method private static test()J 60 .limit regs 6 61 62 const v0, 9999 63 const v1, 0xaaa 64 const v2, 0xbbbb 65 const v3, 0xcccc 66 67 const-wide v4, 0xdddd 68 return-wide v4 69 .end method 70 71 72