xref: /aosp_15_r20/art/test/660-store-8-16/smali/TestCase.smali (revision 795d594fd825385562da6b089ea9b2033f3abf5a)
1*795d594fSAndroid Build Coastguard Worker# Copyright (C) 2017 The Android Open Source Project
2*795d594fSAndroid Build Coastguard Worker#
3*795d594fSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
4*795d594fSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
5*795d594fSAndroid Build Coastguard Worker# You may obtain a copy of the License at
6*795d594fSAndroid Build Coastguard Worker#
7*795d594fSAndroid Build Coastguard Worker#      http://www.apache.org/licenses/LICENSE-2.0
8*795d594fSAndroid Build Coastguard Worker#
9*795d594fSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*795d594fSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
11*795d594fSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*795d594fSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
13*795d594fSAndroid Build Coastguard Worker# limitations under the License.
14*795d594fSAndroid Build Coastguard Worker
15*795d594fSAndroid Build Coastguard Worker.class public LTestCase;
16*795d594fSAndroid Build Coastguard Worker
17*795d594fSAndroid Build Coastguard Worker.super Ljava/lang/Object;
18*795d594fSAndroid Build Coastguard Worker
19*795d594fSAndroid Build Coastguard Worker.method public static setByteArray([B)V
20*795d594fSAndroid Build Coastguard Worker  .registers 3
21*795d594fSAndroid Build Coastguard Worker  const/16 v0, 0x0
22*795d594fSAndroid Build Coastguard Worker  const/16 v1, 0x0101
23*795d594fSAndroid Build Coastguard Worker  aput-byte v1, p0, v0
24*795d594fSAndroid Build Coastguard Worker  return-void
25*795d594fSAndroid Build Coastguard Worker.end method
26*795d594fSAndroid Build Coastguard Worker
27*795d594fSAndroid Build Coastguard Worker.method public static setByteStaticField()V
28*795d594fSAndroid Build Coastguard Worker  .registers 1
29*795d594fSAndroid Build Coastguard Worker  const/16 v0, 0x0101
30*795d594fSAndroid Build Coastguard Worker  sput-byte v0, LTestCase;->staticByteField:B
31*795d594fSAndroid Build Coastguard Worker  return-void
32*795d594fSAndroid Build Coastguard Worker.end method
33*795d594fSAndroid Build Coastguard Worker
34*795d594fSAndroid Build Coastguard Worker.method public static setByteInstanceField(LTestCase;)V
35*795d594fSAndroid Build Coastguard Worker  .registers 2
36*795d594fSAndroid Build Coastguard Worker  const/16 v0, 0x0101
37*795d594fSAndroid Build Coastguard Worker  iput-byte v0, p0, LTestCase;->instanceByteField:B
38*795d594fSAndroid Build Coastguard Worker  return-void
39*795d594fSAndroid Build Coastguard Worker.end method
40*795d594fSAndroid Build Coastguard Worker
41*795d594fSAndroid Build Coastguard Worker.method public constructor <init>()V
42*795d594fSAndroid Build Coastguard Worker    .registers 1
43*795d594fSAndroid Build Coastguard Worker    invoke-direct {p0}, Ljava/lang/Object;-><init>()V
44*795d594fSAndroid Build Coastguard Worker    return-void
45*795d594fSAndroid Build Coastguard Worker.end method
46*795d594fSAndroid Build Coastguard Worker
47*795d594fSAndroid Build Coastguard Worker.method public static setShortArray([S)V
48*795d594fSAndroid Build Coastguard Worker  .registers 3
49*795d594fSAndroid Build Coastguard Worker  const/16 v0, 0x0
50*795d594fSAndroid Build Coastguard Worker  const v1, 0x10101
51*795d594fSAndroid Build Coastguard Worker  aput-short v1, p0, v0
52*795d594fSAndroid Build Coastguard Worker  return-void
53*795d594fSAndroid Build Coastguard Worker.end method
54*795d594fSAndroid Build Coastguard Worker
55*795d594fSAndroid Build Coastguard Worker.method public static setShortStaticField()V
56*795d594fSAndroid Build Coastguard Worker  .registers 1
57*795d594fSAndroid Build Coastguard Worker  const v0, 0x10101
58*795d594fSAndroid Build Coastguard Worker  sput-short v0, LTestCase;->staticShortField:S
59*795d594fSAndroid Build Coastguard Worker  return-void
60*795d594fSAndroid Build Coastguard Worker.end method
61*795d594fSAndroid Build Coastguard Worker
62*795d594fSAndroid Build Coastguard Worker.method public static setShortInstanceField(LTestCase;)V
63*795d594fSAndroid Build Coastguard Worker  .registers 2
64*795d594fSAndroid Build Coastguard Worker  const v0, 0x10101
65*795d594fSAndroid Build Coastguard Worker  iput-short v0, p0, LTestCase;->instanceShortField:S
66*795d594fSAndroid Build Coastguard Worker  return-void
67*795d594fSAndroid Build Coastguard Worker.end method
68*795d594fSAndroid Build Coastguard Worker
69*795d594fSAndroid Build Coastguard Worker.method public static setCharArray([C)V
70*795d594fSAndroid Build Coastguard Worker  .registers 3
71*795d594fSAndroid Build Coastguard Worker  const/16 v0, 0x0
72*795d594fSAndroid Build Coastguard Worker  const v1, 0x10101
73*795d594fSAndroid Build Coastguard Worker  aput-char v1, p0, v0
74*795d594fSAndroid Build Coastguard Worker  return-void
75*795d594fSAndroid Build Coastguard Worker.end method
76*795d594fSAndroid Build Coastguard Worker
77*795d594fSAndroid Build Coastguard Worker.method public static setCharStaticField()V
78*795d594fSAndroid Build Coastguard Worker  .registers 1
79*795d594fSAndroid Build Coastguard Worker  const v0, 0x10101
80*795d594fSAndroid Build Coastguard Worker  sput-char v0, LTestCase;->staticCharField:C
81*795d594fSAndroid Build Coastguard Worker  return-void
82*795d594fSAndroid Build Coastguard Worker.end method
83*795d594fSAndroid Build Coastguard Worker
84*795d594fSAndroid Build Coastguard Worker.method public static setCharInstanceField(LTestCase;)V
85*795d594fSAndroid Build Coastguard Worker  .registers 2
86*795d594fSAndroid Build Coastguard Worker  const v0, 0x10101
87*795d594fSAndroid Build Coastguard Worker  iput-char v0, p0, LTestCase;->instanceCharField:C
88*795d594fSAndroid Build Coastguard Worker  return-void
89*795d594fSAndroid Build Coastguard Worker.end method
90*795d594fSAndroid Build Coastguard Worker
91*795d594fSAndroid Build Coastguard Worker.method public constructor <init>()V
92*795d594fSAndroid Build Coastguard Worker    .registers 1
93*795d594fSAndroid Build Coastguard Worker    invoke-direct {p0}, Ljava/lang/Object;-><init>()V
94*795d594fSAndroid Build Coastguard Worker    return-void
95*795d594fSAndroid Build Coastguard Worker.end method
96*795d594fSAndroid Build Coastguard Worker
97*795d594fSAndroid Build Coastguard Worker.field public static staticByteField:B
98*795d594fSAndroid Build Coastguard Worker.field public instanceByteField:B
99*795d594fSAndroid Build Coastguard Worker.field public static staticShortField:S
100*795d594fSAndroid Build Coastguard Worker.field public instanceShortField:S
101*795d594fSAndroid Build Coastguard Worker.field public static staticCharField:C
102*795d594fSAndroid Build Coastguard Worker.field public instanceCharField:C
103