< prev index next >

test/compiler/cpuflags/TestAESIntrinsicsOnSupportedConfig.java

Print this page




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test
  27  * @library /testlibrary /test/lib /
  28  * @modules java.base/jdk.internal.misc
  29  *          java.management
  30  * @ignore 8146128
  31  * @build compiler.cpuflags.TestAESIntrinsicsOnSupportedConfig
  32  *        compiler.codegen.aes.TestAESMain
  33  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  34  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  35  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  36  *                   -XX:+WhiteBoxAPI -Xbatch
  37  *                   compiler.cpuflags.TestAESIntrinsicsOnSupportedConfig
  38  */
  39 
  40 package compiler.cpuflags;
  41 
  42 import jdk.test.lib.OutputAnalyzer;
  43 import jdk.test.lib.Platform;
  44 import jdk.test.lib.ProcessTools;
  45 
  46 public class TestAESIntrinsicsOnSupportedConfig extends AESIntrinsicsBase {
  47 
  48     /**
  49      * Constructs new TestAESIntrinsicsOnSupportedConfig that will be executed
  50      * only if AESSupportPredicate returns true
  51      */
  52     private TestAESIntrinsicsOnSupportedConfig() {
  53         super(AESIntrinsicsBase.AES_SUPPORTED_PREDICATE);
  54     }
  55 
  56     @Override
  57     protected void runTestCases() throws Throwable {
  58         testUseAES();
  59         testUseAESUseSSE2();
  60         testUseAESUseVIS2();
  61         testNoUseAES();
  62         testNoUseAESUseSSE2();
  63         testNoUseAESUseVIS2();
  64         testNoUseAESIntrinsic();




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test
  27  * @library /test/lib /
  28  * @modules java.base/jdk.internal.misc
  29  *          java.management
  30  * @ignore 8146128
  31  * @build sun.hotspot.WhiteBox

  32  * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  33  *                                sun.hotspot.WhiteBox$WhiteBoxPermission
  34  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  35  *                   -XX:+WhiteBoxAPI -Xbatch
  36  *                   compiler.cpuflags.TestAESIntrinsicsOnSupportedConfig
  37  */
  38 
  39 package compiler.cpuflags;
  40 
  41 import jdk.test.lib.process.OutputAnalyzer;
  42 import jdk.test.lib.Platform;
  43 import jdk.test.lib.process.ProcessTools;
  44 
  45 public class TestAESIntrinsicsOnSupportedConfig extends AESIntrinsicsBase {
  46 
  47     /**
  48      * Constructs new TestAESIntrinsicsOnSupportedConfig that will be executed
  49      * only if AESSupportPredicate returns true
  50      */
  51     private TestAESIntrinsicsOnSupportedConfig() {
  52         super(AESIntrinsicsBase.AES_SUPPORTED_PREDICATE);
  53     }
  54 
  55     @Override
  56     protected void runTestCases() throws Throwable {
  57         testUseAES();
  58         testUseAESUseSSE2();
  59         testUseAESUseVIS2();
  60         testNoUseAES();
  61         testNoUseAESUseSSE2();
  62         testNoUseAESUseVIS2();
  63         testNoUseAESIntrinsic();


< prev index next >