Path: blob/master/test/hotspot/jtreg/compiler/c1/Test8004051.java
41152 views
/*1* Copyright (c) 2013, Oracle and/or its affiliates. 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 800405126* @bug 800572227* @summary assert(_oprs_len[mode] < maxNumberOfOperands) failed: array overflow28*29* @run main/othervm -Xcomp compiler.c1.Test800405130*/3132package compiler.c1;3334public class Test8004051 {35public static void main(String[] argv) {36Object o = new Object();37fillPrimRect(1.1f, 1.2f, 1.3f, 1.4f,38o, o,391.5f, 1.6f, 1.7f, 1.8f,402.0f, 2.1f, 2.2f, 2.3f,412.4f, 2.5f, 2.6f, 2.7f,42100, 101);43System.out.println("Test passed, test did not assert");44}4546static boolean fillPrimRect(float x, float y, float w, float h,47Object rectTex, Object wrapTex,48float bx, float by, float bw, float bh,49float f1, float f2, float f3, float f4,50float f5, float f6, float f7, float f8,51int i1, int i2 ) {52System.out.println(x + " " + y + " " + w + " " + h + " " +53bx + " " + by + " " + bw + " " + bh);54return true;55}56}575859