Mercurial > hg > truffle
annotate test/compiler/intrinsics/sha/sanity/TestSHA512MultiBlockIntrinsics.java @ 20601:86307d477907 jdk8u40-b13
Merge
author | amurillo |
---|---|
date | Mon, 03 Nov 2014 18:18:28 -0800 |
parents | 4d8781a35525 |
children |
rev | line source |
---|---|
20428
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
1 /* |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
4 * |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
8 * |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
13 * accompanied this code). |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
14 * |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
18 * |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
21 * questions. |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
22 */ |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
23 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
24 import sha.predicate.IntrinsicPredicates; |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
25 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
26 /** |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
27 * @test |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
28 * @bug 8035968 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
29 * @summary Verify that SHA-512 multi block intrinsic is actually used. |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
30 * @library /testlibrary /testlibrary/whitebox /compiler/testlibrary ../ |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
31 * @build TestSHA intrinsics.Verifier TestSHA512MultiBlockIntrinsics |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
32 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
33 * sun.hotspot.WhiteBox$WhiteBoxPermission |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
34 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
35 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
36 * -XX:Tier4InvocationThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
37 * -XX:+LogCompilation -XX:LogFile=positive_384.log |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
38 * -XX:CompileOnly=sun/security/provider/DigestBase |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
39 * -XX:CompileOnly=sun/security/provider/SHA |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
40 * -XX:+UseSHA512Intrinsics -XX:-UseSHA1Intrinsics |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
41 * -XX:-UseSHA256Intrinsics |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
42 * -Dalgorithm=SHA-384 TestSHA512MultiBlockIntrinsics |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
43 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
44 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
45 * -XX:Tier4InvocationThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
46 * -XX:+LogCompilation -XX:LogFile=positive_384_def.log |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
47 * -XX:CompileOnly=sun/security/provider/DigestBase |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
48 * -XX:CompileOnly=sun/security/provider/SHA |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
49 * -XX:+UseSHA512Intrinsics -Dalgorithm=SHA-384 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
50 * TestSHA512MultiBlockIntrinsics |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
51 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
52 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
53 * -XX:Tier4InvocationThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
54 * -XX:+LogCompilation -XX:LogFile=negative_384.log |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
55 * -XX:CompileOnly=sun/security/provider/DigestBase |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
56 * -XX:CompileOnly=sun/security/provider/SHA -XX:-UseSHA |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
57 * -Dalgorithm=SHA-384 TestSHA1Intrinsics |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
58 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
59 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
60 * -XX:Tier4InvocationThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
61 * -XX:+LogCompilation -XX:LogFile=positive_512.log |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
62 * -XX:CompileOnly=sun/security/provider/DigestBase |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
63 * -XX:CompileOnly=sun/security/provider/SHA |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
64 * -XX:+UseSHA512Intrinsics -XX:-UseSHA1Intrinsics |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
65 * -XX:-UseSHA256Intrinsics |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
66 * -Dalgorithm=SHA-512 TestSHA512MultiBlockIntrinsics |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
67 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
68 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
69 * -XX:Tier4InvocationThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
70 * -XX:+LogCompilation -XX:LogFile=positive_512_def.log |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
71 * -XX:CompileOnly=sun/security/provider/DigestBase |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
72 * -XX:CompileOnly=sun/security/provider/SHA |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
73 * -XX:+UseSHA512Intrinsics -Dalgorithm=SHA-512 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
74 * TestSHA512MultiBlockIntrinsics |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
75 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
76 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
77 * -XX:Tier4InvocationThreshold=500 |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
78 * -XX:+LogCompilation -XX:LogFile=negative_512.log |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
79 * -XX:CompileOnly=sun/security/provider/DigestBase |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
80 * -XX:CompileOnly=sun/security/provider/SHA -XX:-UseSHA |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
81 * -Dalgorithm=SHA-512 TestSHA512MultiBlockIntrinsics |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
82 * @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
83 * intrinsics.Verifier positive_384.log positive_512.log |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
84 * positive_384_def.log positive_512_def.log negative_384.log |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
85 * negative_512.log |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
86 */ |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
87 public class TestSHA512MultiBlockIntrinsics { |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
88 public static void main(String args[]) throws Exception { |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
89 new SHASanityTestBase(IntrinsicPredicates.SHA512_INTRINSICS_AVAILABLE, |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
90 SHASanityTestBase.MB_INTRINSIC_ID).test(); |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
91 } |
4d8781a35525
8055903: Develop sanity tests on SPARC's SHA instructions support
fzhinkin
parents:
diff
changeset
|
92 } |