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

Unified Diff: test/mjsunit/wasm/asm-wasm-f32.js

Issue 2377903002: [wasm] [asm.js] Fix various asm.js issues. (Closed)
Patch Set: Created 4 years, 3 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
Index: test/mjsunit/wasm/asm-wasm-f32.js
diff --git a/test/mjsunit/wasm/asm-wasm-f32.js b/test/mjsunit/wasm/asm-wasm-f32.js
index a5d5a6c2cc2c6e01503764ac2bc626da51264838..66ef2747969a197db264851a7b12ed5981f4c64c 100644
--- a/test/mjsunit/wasm/asm-wasm-f32.js
+++ b/test/mjsunit/wasm/asm-wasm-f32.js
@@ -159,6 +159,11 @@ function f32_gteq(a, b) {
return 0;
}
+function f32_neg(a) {
+ a = fround(a);
+ return fround(-a);
+}
+
var inputs = [
0, 1, 2, 3, 4,
@@ -211,6 +216,7 @@ var funcs = [
f32_lteq,
f32_gt,
f32_gteq,
+ f32_neg,
];
(function () {

Powered by Google App Engine
This is Rietveld 408576698