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

Unified Diff: test/mjsunit/asm/double-lo.js

Issue 2114613002: [intrinsics] Drop the now obsolete %_DoubleHi and %_DoubleLo intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 | « test/mjsunit/asm/double-hi.js ('k') | test/mjsunit/double-intrinsics.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/double-lo.js
diff --git a/test/mjsunit/asm/double-lo.js b/test/mjsunit/asm/double-lo.js
deleted file mode 100644
index 39d5b5268fa568322bd80ccd6fcb2ffdf46fd959..0000000000000000000000000000000000000000
--- a/test/mjsunit/asm/double-lo.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Flags: --allow-natives-syntax
-
-var stdlib = this;
-var foreign = {};
-var heap = new ArrayBuffer(64 * 1024);
-
-
-var m = (function(stdlib, foreign, heap) {
- "use asm";
- function lo1(i) {
- i = +i;
- return %_DoubleLo(i)|0;
- }
- function lo2(i, j) {
- i = +i;
- j = +j;
- return %_DoubleLo(i)+%_DoubleLo(j)|0;
- }
- return { lo1: lo1, lo2: lo2 };
-})(stdlib, foreign, heap);
-
-assertEquals(0, m.lo1(0.0));
-assertEquals(0, m.lo1(-0.0));
-assertEquals(0, m.lo1(Infinity));
-assertEquals(0, m.lo1(-Infinity));
-assertEquals(0, m.lo2(0.0, 0.0));
-assertEquals(0, m.lo2(0.0, -0.0));
-assertEquals(0, m.lo2(-0.0, 0.0));
-assertEquals(0, m.lo2(-0.0, -0.0));
-for (var i = -2147483648; i < 2147483648; i += 3999773) {
- assertEquals(%_DoubleLo(i), m.lo1(i));
- assertEquals(i, m.lo1(%ConstructDouble(0, i)));
- assertEquals(i, m.lo1(%ConstructDouble(i, i)));
- assertEquals(i+i|0, m.lo2(%ConstructDouble(0, i), %ConstructDouble(0, i)));
- assertEquals(i+i|0, m.lo2(%ConstructDouble(i, i), %ConstructDouble(i, i)));
-}
« no previous file with comments | « test/mjsunit/asm/double-hi.js ('k') | test/mjsunit/double-intrinsics.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698