summaryrefslogtreecommitdiff
path: root/test/682-double-catch-phi/src/Main.java
diff options
context:
space:
mode:
author Aart Bik <ajcbik@google.com> 2018-04-10 11:55:00 -0700
committer Aart Bik <ajcbik@google.com> 2018-04-13 10:01:41 -0700
commit3f8e02c3603cf48c7a656b2dd8781e11481fe34b (patch)
tree04c1722c0477342dcc6b6d45329c799d99120e81 /test/682-double-catch-phi/src/Main.java
parent8d2e70ae234d53f825f6876f5b5e75bdfe6729b5 (diff)
Bug fix in SIMD result detection.
Rationale: Only 2-way phis are currently used in reductions to carry SIMD results. Note that this will go away when we introduce proper SIMD types. Note: So far I have not been able to make a small regression test for this. Any pointers on how to set up a catch phi? Test: test-art-host,target Bug: b/77725987 Change-Id: I8f8b2dbec35e906878b7f7ed62690c3234db4211
Diffstat (limited to 'test/682-double-catch-phi/src/Main.java')
-rw-r--r--test/682-double-catch-phi/src/Main.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/682-double-catch-phi/src/Main.java b/test/682-double-catch-phi/src/Main.java
new file mode 100644
index 0000000000..e65bf0d4d4
--- /dev/null
+++ b/test/682-double-catch-phi/src/Main.java
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2018 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.
+ */
+
+import java.lang.reflect.Method;
+
+public class Main {
+ public static void main(String[] args) throws Exception {
+ if (System.getProperty("java.vm.name").equals("Dalvik")) {
+ Class<?> c = Class.forName("DoubleCatchPhi");
+ }
+ System.out.println("passed");
+ }
+}