summaryrefslogtreecommitdiffstats
path: root/test/467-regalloc-pair/smali/TestCase.smali
blob: a3101feb1210be84ff2627124b66696ab6bc509f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright (C) 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

.class public LTestCase;

.super Ljava/lang/Object;

.method public static testCase([BLMain;)V
    .registers 12
    const/4 v2, 0
    array-length v0, v10
    div-int/lit8 v0, v0, 7
    invoke-static {v2, v0}, Ljava/lang/Math;->max(II)I
    move-result v7
    move v6, v2
    move v3, v2
    :label5
    if-ge v6, v7, :label1
    const-wide/16 v0, 0
    move-wide v4, v0
    move v1, v2
    move v0, v3
    :label4
    const/4 v3, 6
    if-ge v1, v3, :label2
    const/16 v3, 8
    shl-long/2addr v4, v3
    add-int/lit8 v3, v0, 1
    aget-byte v0, v10, v0
    if-gez v0, :label3
    add-int/lit16 v0, v0, 256
    :label3
    int-to-long v8, v0
    or-long/2addr v4, v8
    add-int/lit8 v0, v1, 1
    move v1, v0
    move v0, v3
    goto :label4
    :label2
    add-int/lit8 v3, v0, 1
    aget-byte v0, v10, v0
    invoke-interface {v11, v4, v5, v0}, LItf;->invokeInterface(JI)V
    add-int/lit8 v0, v6, 1
    move v6, v0
    goto :label5
    :label1
    return-void
.end method