Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(843)

Unified Diff: tests/language/vm/regress_22693_vm_test.dart

Issue 988743002: Fix incorrect kNumTemps for BinaryUint32OpInstr on x64 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698