OSDN Git Service

Optimizing: Do not depend on sharpening in test 577
authorGoran Jakovljevic <Goran.Jakovljevic@imgtec.com>
Mon, 29 Feb 2016 11:15:34 +0000 (12:15 +0100)
committerGoran Jakovljevic <Goran.Jakovljevic@imgtec.com>
Mon, 29 Feb 2016 12:16:22 +0000 (13:16 +0100)
The sharpening may or may not remove the ArtMethod*
parameter, so the test must not depend on its absence.
This fixes the test 577 checker test on mips/mips64.

Change-Id: I01a2fc1bd2755804326a2ac284ee81e99fc91aa6

test/577-checker-fp2int/src/Main.java

index e3f1230..ace956d 100644 (file)
@@ -21,7 +21,8 @@ public class Main {
   /// CHECK-DAG: Return [<<Result>>]
   //
   /// CHECK-START: int Main.f2int(float) instruction_simplifier (after)
-  /// CHECK-DAG: <<Raw:i\d+>> InvokeStaticOrDirect [<<Arg:f\d+>>] intrinsic:FloatFloatToRawIntBits
+  // Note: The ArtMethod* (typed as int or long) is optional after sharpening.
+  /// CHECK-DAG: <<Raw:i\d+>> InvokeStaticOrDirect [<<Arg:f\d+>>{{(,[ij]\d+)?}}] intrinsic:FloatFloatToRawIntBits
   /// CHECK-DAG: <<Cond:z\d+>> NotEqual [<<Arg>>,<<Arg>>]
   /// CHECK-DAG: <<Result:i\d+>> Select [<<Raw>>,{{i\d+}},<<Cond>>]
   /// CHECK-DAG: Return [<<Result>>]
@@ -34,7 +35,8 @@ public class Main {
   /// CHECK-DAG: Return [<<Result>>]
   //
   /// CHECK-START: long Main.d2long(double) instruction_simplifier (after)
-  /// CHECK-DAG: <<Raw:j\d+>> InvokeStaticOrDirect [<<Arg:d\d+>>] intrinsic:DoubleDoubleToRawLongBits
+  // Note: The ArtMethod* (typed as int or long) is optional after sharpening.
+  /// CHECK-DAG: <<Raw:j\d+>> InvokeStaticOrDirect [<<Arg:d\d+>>{{(,[ij]\d+)?}}] intrinsic:DoubleDoubleToRawLongBits
   /// CHECK-DAG: <<Cond:z\d+>> NotEqual [<<Arg>>,<<Arg>>]
   /// CHECK-DAG: <<Result:j\d+>> Select [<<Raw>>,{{j\d+}},<<Cond>>]
   /// CHECK-DAG: Return [<<Result>>]