From 37c75151fa6f376279e6d1ccc73da5f88e417236 Mon Sep 17 00:00:00 2001 From: Tamas Kenez Date: Mon, 18 Jun 2018 13:01:47 +0200 Subject: ART-tests: Remove DX dependency from 661-checker-simd-reduc In a few test cases D8 generated code makes ART swap 2 similar PHI instructions. This CL updates the check conditions for D8 and enables it. Test: art/test.py -r -b --host -t 661-checker-simd-reduc Bug: 65168732 Change-Id: I0cde3ab21b33bde48da3209df206739ad9d99e89 --- test/661-checker-simd-reduc/build | 20 -------------------- test/661-checker-simd-reduc/src/Main.java | 12 ++++++------ 2 files changed, 6 insertions(+), 26 deletions(-) delete mode 100644 test/661-checker-simd-reduc/build diff --git a/test/661-checker-simd-reduc/build b/test/661-checker-simd-reduc/build deleted file mode 100644 index d85147f17b..0000000000 --- a/test/661-checker-simd-reduc/build +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# -# Copyright 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. - -# See b/65168732 -export USE_D8=false - -./default-build "$@" diff --git a/test/661-checker-simd-reduc/src/Main.java b/test/661-checker-simd-reduc/src/Main.java index eff2018078..7b6f957b2a 100644 --- a/test/661-checker-simd-reduc/src/Main.java +++ b/test/661-checker-simd-reduc/src/Main.java @@ -55,8 +55,8 @@ public class Main { /// CHECK-START: int Main.reductionInt(int[]) loop_optimization (before) /// CHECK-DAG: <> IntConstant 0 loop:none /// CHECK-DAG: <> IntConstant 1 loop:none - /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none - /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none + /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none + /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none /// CHECK-DAG: <> ArrayGet [{{l\d+}},<>] loop:<> outer_loop:none /// CHECK-DAG: Add [<>,<>] loop:<> outer_loop:none /// CHECK-DAG: Add [<>,<>] loop:<> outer_loop:none @@ -130,8 +130,8 @@ public class Main { /// CHECK-START: int Main.reductionIntToLoop(int[]) loop_optimization (before) /// CHECK-DAG: <> IntConstant 0 loop:none /// CHECK-DAG: <> IntConstant 1 loop:none - /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none - /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none + /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none + /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none /// CHECK-DAG: <> ArrayGet [{{l\d+}},<>] loop:<> outer_loop:none /// CHECK-DAG: Add [<>,<>] loop:<> outer_loop:none /// CHECK-DAG: Add [<>,<>] loop:<> outer_loop:none @@ -295,8 +295,8 @@ public class Main { /// CHECK-START: int Main.reductionMinusInt(int[]) loop_optimization (before) /// CHECK-DAG: <> IntConstant 0 loop:none /// CHECK-DAG: <> IntConstant 1 loop:none - /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none - /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none + /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none + /// CHECK-DAG: <> Phi [<>,{{i\d+}}] loop:<> outer_loop:none /// CHECK-DAG: <> ArrayGet [{{l\d+}},<>] loop:<> outer_loop:none /// CHECK-DAG: Sub [<>,<>] loop:<> outer_loop:none /// CHECK-DAG: Add [<>,<>] loop:<> outer_loop:none -- cgit v1.2.3-59-g8ed1b