| Index: tests/language/vm/regress_22693_vm_test.dart
|
| diff --git a/tests/language/vm/regress_22541_vm_test.dart b/tests/language/vm/regress_22693_vm_test.dart
|
| similarity index 50%
|
| copy from tests/language/vm/regress_22541_vm_test.dart
|
| copy to tests/language/vm/regress_22693_vm_test.dart
|
| index 36b461814bec17306a3df5ca31cb9fae911e1c88..1cd07f9ed4a9474a8130b21607143a5ed96c06ce 100644
|
| --- a/tests/language/vm/regress_22541_vm_test.dart
|
| +++ b/tests/language/vm/regress_22693_vm_test.dart
|
| @@ -1,22 +1,13 @@
|
| // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
| -// Test range inference for multiplication of two negative values.
|
| +// Test location summary for Uint32 multiplication.
|
| // VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
|
|
| -import 'package:expect/expect.dart';
|
| +const MASK = 0xFFFFFFFF;
|
|
|
| -test(a) {
|
| - var x = a ? -1 : -2;
|
| - if (0 < (x * x)) {
|
| - return "ok";
|
| - } else {
|
| - return "fail";
|
| - }
|
| -}
|
| +uint32Mul(x, y) => (x * y) & MASK;
|
|
|
| main() {
|
| - for (var j = 0; j < 20; j++) {
|
| - Expect.equals("ok", test(false));
|
| - }
|
| + for (var i = 0; i < 20; i++) uint32Mul((1 << 63) - 1, 1);
|
| }
|
|
|