Path: blob/master/test/hotspot/jtreg/compiler/loopstripmining/UnexpectedNodeInOuterLoopWhenCloning.java
41152 views
/*1* Copyright (c) 2018, Red Hat, Inc. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223/**24* @test25* @bug 820274726* @summary C2: assert(mode == ControlAroundStripMined && use == sfpt) failed: missed a node27*28* @run main/othervm -Xcomp -Xbatch -XX:CompileOnly=UnexpectedNodeInOuterLoopWhenCloning -XX:-TieredCompilation UnexpectedNodeInOuterLoopWhenCloning29*30*/3132public class UnexpectedNodeInOuterLoopWhenCloning {3334public static final int N = 400;3536public static double dFld=0.37026;37public static int iArrFld[]=new int[N];3839public static void vMeth() {4041int i5=6, i6=-42538, i7=-209, i8=163, i10=-4, i11=191;42boolean b=true;43double dArr[]=new double[N];4445for (i5 = 3; i5 < 245; i5++) {46i7 = 7;47while (--i7 > 0) {48iArrFld[i7] = -11995;49if (b) continue;50}51for (i8 = 1; i8 < 7; ++i8) {52for (i10 = 1; i10 < 2; i10++) {53dFld -= i6;54i11 += i7;55}56}57}58}5960public static void main(String[] strArr) {61UnexpectedNodeInOuterLoopWhenCloning _instance = new UnexpectedNodeInOuterLoopWhenCloning();62_instance.vMeth();63}64}656667