1# Copyright (C) 2015 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.class public LTestCase; 16 17.super Ljava/lang/Object; 18 19.field public static value:Z 20 21## CHECK-START: int TestCase.testCase(int) builder (after) 22 23## CHECK: name "B0" 24## CHECK: <<Const0:i\d+>> IntConstant 0 25 26## CHECK: name "B1" 27## CHECK: successors "B5" "B2" 28## CHECK: <<Cond:z\d+>> Equal [<<Const0>>,<<Const0>>] 29## CHECK: If [<<Cond>>] 30 31## CHECK: name "B2" 32## CHECK: successors "B4" 33## CHECK: Goto 34 35## CHECK: name "B3" 36## CHECK: Return 37 38## CHECK: name "B4" 39## CHECK: successors "B3" 40## CHECK: Goto 41 42## CHECK: name "B5" 43## CHECK: successors "B3" 44## CHECK: Goto 45 46.method public static testCase(I)I 47 .registers 2 48 49 const/4 v0, 0 50 packed-switch v0, :switch_data 51 goto :default 52 53 :switch_data 54 .packed-switch 0x0 55 :case 56 .end packed-switch 57 58 :return 59 return v1 60 61 :default 62 goto :return 63 64 :case 65 goto :return 66 67.end method 68