< prev index next >

test/hotspot/jtreg/compiler/c2/TestBit.java

Print this page
@@ -31,11 +31,11 @@
   * @bug 8247408
   * @summary C2 should convert ((var&16) == 16) to ((var&16) != 0) for power-of-two constants
   * @library /test/lib /
   *
   * @requires vm.flagless
-  * @requires os.arch=="aarch64" | os.arch=="amd64" | os.arch == "ppc64le"
+  * @requires os.arch=="aarch64" | os.arch=="amd64" | os.arch == "ppc64le" | os.arch == "riscv64"
   * @requires vm.debug == true & vm.compiler2.enabled
   *
   * @run driver compiler.c2.TestBit
   */
  public class TestBit {

@@ -53,11 +53,12 @@
          OutputAnalyzer output = new OutputAnalyzer(pb.start());
  
          String expectedTestBitInstruction =
              "ppc64le".equals(System.getProperty("os.arch")) ? "ANDI" :
              "aarch64".equals(System.getProperty("os.arch")) ? "tb"   :
-             "amd64".equals(System.getProperty("os.arch"))   ? "test" : null;
+             "amd64".equals(System.getProperty("os.arch"))   ? "test" :
+             "riscv64".equals(System.getProperty("os.arch")) ? "andi" : null;
  
          if (expectedTestBitInstruction != null) {
              output.shouldContain(expectedTestBitInstruction);
          } else {
              System.err.println("unexpected os.arch");
< prev index next >