test/hotspot/jtreg/compiler/c1/Test8004051.java
author rwestberg
Mon, 04 Jun 2018 16:21:08 +0200 (2018-06-04)
changeset 50391 2bea53d7a27b
parent 47216 71c04702a3d5
permissions -rw-r--r--
8202095: JFR TestBiasedLockRevocationEvents should cope with multiple events during a single safepoint Reviewed-by: mgronlun, egahlin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19556
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
     1
/*
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
     4
 *
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
     7
 * published by the Free Software Foundation.
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
     8
 *
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    13
 * accompanied this code).
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    14
 *
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    18
 *
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    21
 * questions.
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    22
 */
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    23
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    24
/**
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    25
 * @test
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    26
 * @bug 8004051
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    27
 * @bug 8005722
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    28
 * @summary assert(_oprs_len[mode] < maxNumberOfOperands) failed: array overflow
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    29
 *
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    30
 * @run main/othervm -Xcomp compiler.c1.Test8004051
19556
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    31
 */
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    32
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    33
package compiler.c1;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    34
19556
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    35
public class Test8004051 {
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    36
    public static void main(String[] argv) {
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    37
        Object o = new Object();
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    38
        fillPrimRect(1.1f, 1.2f, 1.3f, 1.4f,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    39
                     o, o,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    40
                     1.5f, 1.6f, 1.7f, 1.8f,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    41
                     2.0f, 2.1f, 2.2f, 2.3f,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    42
                     2.4f, 2.5f, 2.6f, 2.7f,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    43
                     100, 101);
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    44
        System.out.println("Test passed, test did not assert");
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    45
    }
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    46
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    47
    static boolean fillPrimRect(float x, float y, float w, float h,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    48
                                Object rectTex, Object wrapTex,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    49
                                float bx, float by, float bw, float bh,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    50
                                float f1, float f2, float f3, float f4,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    51
                                float f5, float f6, float f7, float f8,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    52
                                int i1, int i2 ) {
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    53
        System.out.println(x + " " + y + " " + w + " " + h + " " +
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    54
                           bx + " " + by + " " + bw + " " + bh);
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    55
        return true;
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    56
    }
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    57
}