< prev index next >

test/hotspot/jtreg/compiler/codegen/TestTrichotomyExpressions.java

Print this page




  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  * @test
  26  * @bug 8210215
  27  * @summary Test that C2 correctly optimizes trichotomy expressions.
  28  * @library /test/lib
  29  * @run main/othervm -XX:-TieredCompilation -Xbatch
  30  *                   -XX:CompileCommand=dontinline,compiler.codegen.TestTrichotomyExpressions::test*
  31  *                   compiler.codegen.TestTrichotomyExpressions
  32  * @run main/othervm -XX:-TieredCompilation -Xcomp
  33  *                   -XX:CompileCommand=dontinline,compiler.codegen.TestTrichotomyExpressions::test*
  34  *                   compiler.codegen.TestTrichotomyExpressions
  35  */
  36 
  37 package compiler.codegen;
  38 
  39 import java.lang.annotation.ElementType;
  40 import java.lang.annotation.Retention;
  41 import java.lang.annotation.RetentionPolicy;
  42 import java.lang.annotation.Target;
  43 import java.lang.reflect.Method;
  44 import java.util.Random;
  45 
  46 import jdk.test.lib.Asserts;
  47 import jdk.test.lib.Utils;
  48 
  49 enum Operation { SMALLER, SMALLER_EQUAL, EQUAL, GREATER_EQUAL, GREATER, ALWAYS_FALSE }
  50 
  51 @Retention(RetentionPolicy.RUNTIME)
  52 @Target(ElementType.METHOD)
  53 @interface Test {
  54     Operation op();




  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  * @test
  26  * @bug 8210215
  27  * @summary Test that C2 correctly optimizes trichotomy expressions.
  28  * @library /test/lib
  29  * @run main/othervm -XX:-TieredCompilation -Xbatch
  30  *                   -XX:CompileCommand=dontinline,compiler.codegen.TestTrichotomyExpressions::test*
  31  *                   compiler.codegen.TestTrichotomyExpressions



  32  */
  33 
  34 package compiler.codegen;
  35 
  36 import java.lang.annotation.ElementType;
  37 import java.lang.annotation.Retention;
  38 import java.lang.annotation.RetentionPolicy;
  39 import java.lang.annotation.Target;
  40 import java.lang.reflect.Method;
  41 import java.util.Random;
  42 
  43 import jdk.test.lib.Asserts;
  44 import jdk.test.lib.Utils;
  45 
  46 enum Operation { SMALLER, SMALLER_EQUAL, EQUAL, GREATER_EQUAL, GREATER, ALWAYS_FALSE }
  47 
  48 @Retention(RetentionPolicy.RUNTIME)
  49 @Target(ElementType.METHOD)
  50 @interface Test {
  51     Operation op();


< prev index next >