summaryrefslogtreecommitdiff
path: root/test/2020-InvokeVirtual-Inlining/src/Test.java
diff options
context:
space:
mode:
author anuvarsh <anuvarshini.bc@intel.com> 2019-06-11 14:38:51 +0530
committer Nicolas Geoffray <ngeoffray@google.com> 2019-06-25 13:22:38 +0000
commit04968fafaca9288f0660617366318082a7f5cbf1 (patch)
tree8a02553dd737d9deaa6466a98456e3746f3c0c88 /test/2020-InvokeVirtual-Inlining/src/Test.java
parent7d94aa16f9a3d0368b931eecd24fbfd2724ba21d (diff)
Tests for Inlining Optimization
Test: ./test.py --host Change-Id: I382dcb4501e0b4ce3dc9a2a0b19736ca2213cc21 Signed-off-by: anuvarsh <anuvarshini.bc@intel.com>
Diffstat (limited to 'test/2020-InvokeVirtual-Inlining/src/Test.java')
-rw-r--r--test/2020-InvokeVirtual-Inlining/src/Test.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/2020-InvokeVirtual-Inlining/src/Test.java b/test/2020-InvokeVirtual-Inlining/src/Test.java
new file mode 100644
index 0000000000..9ce2566beb
--- /dev/null
+++ b/test/2020-InvokeVirtual-Inlining/src/Test.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2017 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 Test {
+
+ public long simplemethodMul(long jj, long ii) {
+ jj = ii * jj;
+ return jj;
+ }
+
+ public float simplemethodRem(float jj, float kk) {
+ jj = kk % jj;
+ jj = jj % kk;
+ return jj;
+ }
+
+ public int simplemethodInt(int jj, int kk) {
+ jj = kk | jj;
+ return jj;
+ }
+
+ public long simplemethodXor(long jj, long kk) {
+ jj = ~kk;
+ return jj;
+ }
+
+}