< prev index next >

src/cpu/aarch64/vm/aarch64.ad

Print this page

        

@@ -15745,10 +15745,20 @@
                      2, /*is_string*/false);
   %}
   ins_pipe(pipe_class_memory);
 %}
 
+instruct has_negatives(iRegP_R1 ary1, iRegI_R2 len, iRegI_R0 result, rFlagsReg cr)
+%{
+  match(Set result (HasNegatives ary1 len));
+  effect(USE_KILL ary1, USE_KILL len, KILL cr);
+  format %{ "has negatives byte[] $ary1,$len -> $result" %}
+  ins_encode %{
+    __ has_negatives($ary1$$Register, $len$$Register, $result$$Register);
+  %}
+  ins_pipe( pipe_slow );
+%}
 
 // fast char[] to byte[] compression
 instruct string_compress(iRegP_R2 src, iRegP_R1 dst, iRegI_R3 len,
                          vRegD_V0 tmp1, vRegD_V1 tmp2,
                          vRegD_V2 tmp3, vRegD_V3 tmp4,
< prev index next >