OSDN Git Service

ART: Fix ROR Checker test
authorDavid Brazdil <dbrazdil@google.com>
Mon, 25 Apr 2016 16:47:43 +0000 (17:47 +0100)
committerDavid Brazdil <dbrazdil@google.com>
Mon, 25 Apr 2016 16:47:43 +0000 (17:47 +0100)
Recent update of Jack started encoding "x << -2" as "x << 30". Update
the corresponding Checker test to accept both values.

Bug: 28244190
Change-Id: I65833afa416a7eb8fa05d381cff547a58dcc0bea

test/557-checker-instruction-simplifier-ror/src/Main.java

index 027f262..310611b 100644 (file)
@@ -178,7 +178,7 @@ public class Main {
   /// CHECK-START: int Main.ror_int_constant_c_negc(int) instruction_simplifier (before)
   /// CHECK:          <<ArgValue:i\d+>>     ParameterValue
   /// CHECK:          <<Const2:i\d+>>       IntConstant 2
-  /// CHECK:          <<ConstNeg2:i\d+>>    IntConstant -2
+  /// CHECK:          <<ConstNeg2:i\d+>>    IntConstant {{-2|30}}
   /// CHECK-DAG:      <<UShr:i\d+>>         UShr [<<ArgValue>>,<<Const2>>]
   /// CHECK-DAG:      <<Shl:i\d+>>          Shl [<<ArgValue>>,<<ConstNeg2>>]
   /// CHECK:          <<Or:i\d+>>           Or [<<UShr>>,<<Shl>>]