HELLO·Android
系统源代码
IT资讯
技术文章
我的收藏
注册
登录
-
我收藏的文章
创建代码块
我的代码块
我的账号
Pie
|
9.0.0_r8
下载
查看原文件
收藏
根目录
art
test
565-checker-rotate
src
Main.java
/* * Copyright (C) 2016 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. */ public class Main { /// CHECK-START: int Main.rotateLeftBoolean(boolean, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> IntConstant 0 /// CHECK-DAG: <
> IntConstant 1 /// CHECK-DAG: <
> Phi [<
>,<
>] /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:IntegerRotateLeft /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftBoolean(boolean, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> IntConstant 0 /// CHECK-DAG: <
> IntConstant 1 /// CHECK-DAG: <
> Phi [<
>,<
>] /// CHECK-DAG: <
> Neg [<
>] /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftBoolean(boolean, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect /// CHECK-START: int Main.rotateLeftBoolean(boolean, int) select_generator (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> IntConstant 0 /// CHECK-DAG: <
> IntConstant 1 /// CHECK-DAG: <
> Select [<
>,<
>,<
>] /// CHECK-DAG: <
> Neg [<
>] /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftBoolean(boolean, int) select_generator (after) /// CHECK-NOT: Phi /// CHECK-START: int Main.rotateLeftBoolean(boolean, int) instruction_simplifier$after_bce (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Neg [<
>] /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftBoolean(boolean, int) instruction_simplifier$after_bce (after) /// CHECK-NOT: Select private static int rotateLeftBoolean(boolean value, int distance) { return Integer.rotateLeft(value ? 1 : 0, distance); } /// CHECK-START: int Main.rotateLeftByte(byte, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:IntegerRotateLeft /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftByte(byte, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Neg [<
>] /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftByte(byte, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect private static int rotateLeftByte(byte value, int distance) { return Integer.rotateLeft(value, distance); } /// CHECK-START: int Main.rotateLeftShort(short, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:IntegerRotateLeft /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftShort(short, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Neg [<
>] /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftShort(short, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect private static int rotateLeftShort(short value, int distance) { return Integer.rotateLeft(value, distance); } /// CHECK-START: int Main.rotateLeftChar(char, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:IntegerRotateLeft /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftChar(char, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Neg [<
>] /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftChar(char, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect private static int rotateLeftChar(char value, int distance) { return Integer.rotateLeft(value, distance); } /// CHECK-START: int Main.rotateLeftInt(int, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:IntegerRotateLeft /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftInt(int, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Neg [<
>] /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftInt(int, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect private static int rotateLeftInt(int value, int distance) { return Integer.rotateLeft(value, distance); } /// CHECK-START: long Main.rotateLeftLong(long, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:LongRotateLeft /// CHECK-DAG: Return [<
>] /// CHECK-START: long Main.rotateLeftLong(long, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Neg [<
>] /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: long Main.rotateLeftLong(long, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect private static long rotateLeftLong(long value, int distance) { return Long.rotateLeft(value, distance); } /// CHECK-START: int Main.rotateRightBoolean(boolean, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> IntConstant 0 /// CHECK-DAG: <
> IntConstant 1 /// CHECK-DAG: <
> Phi [<
>,<
>] /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:IntegerRotateRight /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightBoolean(boolean, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> IntConstant 0 /// CHECK-DAG: <
> IntConstant 1 /// CHECK-DAG: <
> Phi [<
>,<
>] /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightBoolean(boolean, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect /// CHECK-START: int Main.rotateRightBoolean(boolean, int) select_generator (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> IntConstant 0 /// CHECK-DAG: <
> IntConstant 1 /// CHECK-DAG: <
> Select [<
>,<
>,<
>] /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightBoolean(boolean, int) select_generator (after) /// CHECK-NOT: Phi /// CHECK-START: int Main.rotateRightBoolean(boolean, int) instruction_simplifier$after_bce (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightBoolean(boolean, int) instruction_simplifier$after_bce (after) /// CHECK-NOT: Select private static int rotateRightBoolean(boolean value, int distance) { return Integer.rotateRight(value ? 1 : 0, distance); } /// CHECK-START: int Main.rotateRightByte(byte, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:IntegerRotateRight /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightByte(byte, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightByte(byte, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect private static int rotateRightByte(byte value, int distance) { return Integer.rotateRight(value, distance); } /// CHECK-START: int Main.rotateRightShort(short, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:IntegerRotateRight /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightShort(short, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightShort(short, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect private static int rotateRightShort(short value, int distance) { return Integer.rotateRight(value, distance); } /// CHECK-START: int Main.rotateRightChar(char, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:IntegerRotateRight /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightChar(char, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightChar(char, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect private static int rotateRightChar(char value, int distance) { return Integer.rotateRight(value, distance); } /// CHECK-START: int Main.rotateRightInt(int, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:IntegerRotateRight /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightInt(int, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateRightInt(int, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect private static int rotateRightInt(int value, int distance) { return Integer.rotateRight(value, distance); } /// CHECK-START: long Main.rotateRightLong(long, int) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:LongRotateRight /// CHECK-DAG: Return [<
>] /// CHECK-START: long Main.rotateRightLong(long, int) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Ror [<
>,<
>] /// CHECK-DAG: Return [<
>] /// CHECK-START: long Main.rotateRightLong(long, int) instruction_simplifier (after) /// CHECK-NOT: InvokeStaticOrDirect private static long rotateRightLong(long value, int distance) { return Long.rotateRight(value, distance); } /// CHECK-START: int Main.rotateLeftIntWithByteDistance(int, byte) intrinsics_recognition (after) /// CHECK-DAG: <
> CurrentMethod /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> InvokeStaticOrDirect [<
>,<
>,<
>] intrinsic:IntegerRotateLeft /// CHECK-DAG: Return [<
>] /// CHECK-START: int Main.rotateLeftIntWithByteDistance(int, byte) instruction_simplifier (after) /// CHECK: <
> ParameterValue /// CHECK: <
> ParameterValue /// CHECK-DAG: <
> Neg [<
>] /// CHECK-DAG: <
> Ror [<