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

Unified Diff: test/codegen/expect/lib/typed_data/simd_store_to_load_forward_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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/codegen/expect/lib/typed_data/simd_store_to_load_forward_test.js
diff --git a/test/codegen/expect/lib/typed_data/simd_store_to_load_forward_test.js b/test/codegen/expect/lib/typed_data/simd_store_to_load_forward_test.js
new file mode 100644
index 0000000000000000000000000000000000000000..e7a0e1e54f1fd428c83fa43c176d0901c19ba473
--- /dev/null
+++ b/test/codegen/expect/lib/typed_data/simd_store_to_load_forward_test.js
@@ -0,0 +1,35 @@
+dart_library.library('lib/typed_data/simd_store_to_load_forward_test', null, /* Imports */[
+ 'dart_sdk',
+ 'expect'
+], function load__simd_store_to_load_forward_test(exports, dart_sdk, expect) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const typed_data = dart_sdk.typed_data;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const expect$ = expect.expect;
+ const simd_store_to_load_forward_test = Object.create(null);
+ let Float32x4ListAndFloat32x4ToFloat32x4 = () => (Float32x4ListAndFloat32x4ToFloat32x4 = dart.constFn(dart.definiteFunctionType(typed_data.Float32x4, [typed_data.Float32x4List, typed_data.Float32x4])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ simd_store_to_load_forward_test.testLoadStoreForwardingFloat32x4 = function(l, v) {
+ l.set(1, v);
+ let r = l.get(1);
+ return r;
+ };
+ dart.fn(simd_store_to_load_forward_test.testLoadStoreForwardingFloat32x4, Float32x4ListAndFloat32x4ToFloat32x4());
+ simd_store_to_load_forward_test.main = function() {
+ let l = typed_data.Float32x4List.new(4);
+ let a = typed_data.Float32x4.new(1.0, 2.0, 3.0, 4.0);
+ let b = null;
+ for (let i = 0; i < 20; i++) {
+ b = simd_store_to_load_forward_test.testLoadStoreForwardingFloat32x4(l, a);
+ }
+ expect$.Expect.equals(a.x, b.x);
+ expect$.Expect.equals(a.y, b.y);
+ expect$.Expect.equals(a.z, b.z);
+ expect$.Expect.equals(a.w, b.w);
+ };
+ dart.fn(simd_store_to_load_forward_test.main, VoidTodynamic());
+ // Exports:
+ exports.simd_store_to_load_forward_test = simd_store_to_load_forward_test;
+});
« no previous file with comments | « test/codegen/expect/lib/typed_data/setRange_5_test.js ('k') | test/codegen/expect/lib/typed_data/typed_data_from_list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698