hotspot/test/compiler/8004051/Test8004051.java
author pchelko
Mon, 16 Jun 2014 17:13:58 +0400
changeset 25197 533f45be322f
parent 19556 5b15636fd328
child 25733 e80688a5d7df
permissions -rw-r--r--
8046221: [TEST_BUG] Cleanup datatransfer tests Reviewed-by: anthony, alexsch
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
/**
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    26
 * @test
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    27
 * @bug 8004051
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    28
 * @bug 8005722
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    29
 * @summary assert(_oprs_len[mode] < maxNumberOfOperands) failed: array overflow
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    30
 *
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    31
 * @run main/othervm -Xcomp -client Test8004051
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    32
 */
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    33
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    34
public class Test8004051 {
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    35
    public static void main(String[] argv) {
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    36
        Object o = new Object();
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    37
        fillPrimRect(1.1f, 1.2f, 1.3f, 1.4f,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    38
                     o, o,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    39
                     1.5f, 1.6f, 1.7f, 1.8f,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    40
                     2.0f, 2.1f, 2.2f, 2.3f,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    41
                     2.4f, 2.5f, 2.6f, 2.7f,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    42
                     100, 101);
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    43
        System.out.println("Test passed, test did not assert");
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    44
    }
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
    static boolean fillPrimRect(float x, float y, float w, float h,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    47
                                Object rectTex, Object wrapTex,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    48
                                float bx, float by, float bw, float bh,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    49
                                float f1, float f2, float f3, float f4,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    50
                                float f5, float f6, float f7, float f8,
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    51
                                int i1, int i2 ) {
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    52
        System.out.println(x + " " + y + " " + w + " " + h + " " +
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    53
                           bx + " " + by + " " + bw + " " + bh);
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    54
        return true;
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    55
    }
5b15636fd328 8023580: Add jtreg test for 8004051 and 8005722
bpittore
parents:
diff changeset
    56
}