xref: /aosp_15_r20/art/test/685-shifts/smali/Test.smali (revision 795d594fd825385562da6b089ea9b2033f3abf5a)
1*795d594fSAndroid Build Coastguard Worker# Copyright (C) 2018 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 LTest;
16*795d594fSAndroid Build Coastguard Worker.super Ljava/lang/Object;
17*795d594fSAndroid Build Coastguard Worker
18*795d594fSAndroid Build Coastguard Worker.method public static shlZero(J)J
19*795d594fSAndroid Build Coastguard Worker    .registers 6
20*795d594fSAndroid Build Coastguard Worker    const v2, 0x0
21*795d594fSAndroid Build Coastguard Worker    shl-long v0, p0, v2
22*795d594fSAndroid Build Coastguard Worker    return-wide v0
23*795d594fSAndroid Build Coastguard Worker.end method
24*795d594fSAndroid Build Coastguard Worker
25*795d594fSAndroid Build Coastguard Worker.method public static shrZero(J)J
26*795d594fSAndroid Build Coastguard Worker    .registers 6
27*795d594fSAndroid Build Coastguard Worker    const v2, 0x0
28*795d594fSAndroid Build Coastguard Worker    shr-long v0, p0, v2
29*795d594fSAndroid Build Coastguard Worker    return-wide v0
30*795d594fSAndroid Build Coastguard Worker.end method
31*795d594fSAndroid Build Coastguard Worker
32*795d594fSAndroid Build Coastguard Worker.method public static ushrZero(J)J
33*795d594fSAndroid Build Coastguard Worker    .registers 6
34*795d594fSAndroid Build Coastguard Worker    const v2, 0x0
35*795d594fSAndroid Build Coastguard Worker    ushr-long v0, p0, v2
36*795d594fSAndroid Build Coastguard Worker    return-wide v0
37*795d594fSAndroid Build Coastguard Worker.end method
38*795d594fSAndroid Build Coastguard Worker
39*795d594fSAndroid Build Coastguard Worker.method public static shlOne(J)J
40*795d594fSAndroid Build Coastguard Worker    .registers 6
41*795d594fSAndroid Build Coastguard Worker    const v2, 0x1
42*795d594fSAndroid Build Coastguard Worker    shl-long v0, p0, v2
43*795d594fSAndroid Build Coastguard Worker    return-wide v0
44*795d594fSAndroid Build Coastguard Worker.end method
45*795d594fSAndroid Build Coastguard Worker
46*795d594fSAndroid Build Coastguard Worker.method public static shrOne(J)J
47*795d594fSAndroid Build Coastguard Worker    .registers 6
48*795d594fSAndroid Build Coastguard Worker    const v2, 0x1
49*795d594fSAndroid Build Coastguard Worker    shr-long v0, p0, v2
50*795d594fSAndroid Build Coastguard Worker    return-wide v0
51*795d594fSAndroid Build Coastguard Worker.end method
52*795d594fSAndroid Build Coastguard Worker
53*795d594fSAndroid Build Coastguard Worker.method public static ushrOne(J)J
54*795d594fSAndroid Build Coastguard Worker    .registers 6
55*795d594fSAndroid Build Coastguard Worker    const v2, 0x1
56*795d594fSAndroid Build Coastguard Worker    ushr-long v0, p0, v2
57*795d594fSAndroid Build Coastguard Worker    return-wide v0
58*795d594fSAndroid Build Coastguard Worker.end method
59