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

Side by Side Diff: test/cctest/wasm/test-run-wasm-simd.cc

Issue 2723823002: [wasm]disable F32x4 and I32x4 cross ops test for arm as they break chromebook build (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/assembler-inl.h" 5 #include "src/assembler-inl.h"
6 #include "src/wasm/wasm-macro-gen.h" 6 #include "src/wasm/wasm-macro-gen.h"
7 #include "test/cctest/cctest.h" 7 #include "test/cctest/cctest.h"
8 #include "test/cctest/compiler/value-helper.h" 8 #include "test/cctest/compiler/value-helper.h"
9 #include "test/cctest/wasm/wasm-run-utils.h" 9 #include "test/cctest/wasm/wasm-run-utils.h"
10 10
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 WASM_SIMD_CHECK_LANE(I##format, mask, I32, val2, 3), WASM_ONE); \ 1320 WASM_SIMD_CHECK_LANE(I##format, mask, I32, val2, 3), WASM_ONE); \
1321 \ 1321 \
1322 CHECK_EQ(1, r.Call(0x12, 0x34)); \ 1322 CHECK_EQ(1, r.Call(0x12, 0x34)); \
1323 } 1323 }
1324 1324
1325 WASM_SIMD_SELECT_TEST(32x4) 1325 WASM_SIMD_SELECT_TEST(32x4)
1326 WASM_SIMD_SELECT_TEST(16x8) 1326 WASM_SIMD_SELECT_TEST(16x8)
1327 WASM_SIMD_SELECT_TEST(8x16) 1327 WASM_SIMD_SELECT_TEST(8x16)
1328 #endif // V8_TARGET_ARCH_ARM 1328 #endif // V8_TARGET_ARCH_ARM
1329 1329
1330 #if V8_TARGET_ARCH_ARM || SIMD_LOWERING_TARGET 1330 #if SIMD_LOWERING_TARGET
1331 WASM_EXEC_COMPILED_TEST(SimdI32x4ExtractWithF32x4) { 1331 WASM_EXEC_COMPILED_TEST(SimdI32x4ExtractWithF32x4) {
1332 FLAG_wasm_simd_prototype = true; 1332 FLAG_wasm_simd_prototype = true;
1333 WasmRunner<int32_t> r(kExecuteCompiled); 1333 WasmRunner<int32_t> r(kExecuteCompiled);
1334 BUILD(r, WASM_IF_ELSE_I( 1334 BUILD(r, WASM_IF_ELSE_I(
1335 WASM_I32_EQ(WASM_SIMD_I32x4_EXTRACT_LANE( 1335 WASM_I32_EQ(WASM_SIMD_I32x4_EXTRACT_LANE(
1336 0, WASM_SIMD_F32x4_SPLAT(WASM_F32(30.5))), 1336 0, WASM_SIMD_F32x4_SPLAT(WASM_F32(30.5))),
1337 WASM_I32_REINTERPRET_F32(WASM_F32(30.5))), 1337 WASM_I32_REINTERPRET_F32(WASM_F32(30.5))),
1338 WASM_I32V(1), WASM_I32V(0))); 1338 WASM_I32V(1), WASM_I32V(0)));
1339 FOR_INT32_INPUTS(i) { CHECK_EQ(1, r.Call()); } 1339 FOR_INT32_INPUTS(i) { CHECK_EQ(1, r.Call()); }
1340 } 1340 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 WASM_I32_EQ( 1374 WASM_I32_EQ(
1375 WASM_SIMD_I32x4_EXTRACT_LANE( 1375 WASM_SIMD_I32x4_EXTRACT_LANE(
1376 0, WASM_SIMD_BINOP(kExprI32x4Add, 1376 0, WASM_SIMD_BINOP(kExprI32x4Add,
1377 WASM_SIMD_F32x4_SPLAT(WASM_F32(21.25)), 1377 WASM_SIMD_F32x4_SPLAT(WASM_F32(21.25)),
1378 WASM_SIMD_F32x4_SPLAT(WASM_F32(31.5)))), 1378 WASM_SIMD_F32x4_SPLAT(WASM_F32(31.5)))),
1379 WASM_I32_ADD(WASM_I32_REINTERPRET_F32(WASM_F32(21.25)), 1379 WASM_I32_ADD(WASM_I32_REINTERPRET_F32(WASM_F32(21.25)),
1380 WASM_I32_REINTERPRET_F32(WASM_F32(31.5)))), 1380 WASM_I32_REINTERPRET_F32(WASM_F32(31.5)))),
1381 WASM_I32V(1), WASM_I32V(0))); 1381 WASM_I32V(1), WASM_I32V(0)));
1382 FOR_INT32_INPUTS(i) { CHECK_EQ(1, r.Call()); } 1382 FOR_INT32_INPUTS(i) { CHECK_EQ(1, r.Call()); }
1383 } 1383 }
1384 #endif // SIMD_LOWERING_TARGET
1384 1385
1386 #if V8_TARGET_ARCH_ARM || SIMD_LOWERING_TARGET
1385 WASM_EXEC_COMPILED_TEST(SimdI32x4Local) { 1387 WASM_EXEC_COMPILED_TEST(SimdI32x4Local) {
1386 FLAG_wasm_simd_prototype = true; 1388 FLAG_wasm_simd_prototype = true;
1387 WasmRunner<int32_t> r(kExecuteCompiled); 1389 WasmRunner<int32_t> r(kExecuteCompiled);
1388 r.AllocateLocal(kWasmS128); 1390 r.AllocateLocal(kWasmS128);
1389 BUILD(r, WASM_SET_LOCAL(0, WASM_SIMD_I32x4_SPLAT(WASM_I32V(31))), 1391 BUILD(r, WASM_SET_LOCAL(0, WASM_SIMD_I32x4_SPLAT(WASM_I32V(31))),
1390 1392
1391 WASM_SIMD_I32x4_EXTRACT_LANE(0, WASM_GET_LOCAL(0))); 1393 WASM_SIMD_I32x4_EXTRACT_LANE(0, WASM_GET_LOCAL(0)));
1392 FOR_INT32_INPUTS(i) { CHECK_EQ(31, r.Call()); } 1394 FOR_INT32_INPUTS(i) { CHECK_EQ(31, r.Call()); }
1393 } 1395 }
1394 1396
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 WASM_SET_GLOBAL(0, WASM_SIMD_F32x4_REPLACE_LANE(3, WASM_GET_GLOBAL(0), 1553 WASM_SET_GLOBAL(0, WASM_SIMD_F32x4_REPLACE_LANE(3, WASM_GET_GLOBAL(0),
1552 WASM_F32(65.0))), 1554 WASM_F32(65.0))),
1553 WASM_I32V(1)); 1555 WASM_I32V(1));
1554 FOR_INT32_INPUTS(i) { CHECK_EQ(1, r.Call(0)); } 1556 FOR_INT32_INPUTS(i) { CHECK_EQ(1, r.Call(0)); }
1555 CHECK_EQ(*global, 13.5); 1557 CHECK_EQ(*global, 13.5);
1556 CHECK_EQ(*(global + 1), 45.5); 1558 CHECK_EQ(*(global + 1), 45.5);
1557 CHECK_EQ(*(global + 2), 32.25); 1559 CHECK_EQ(*(global + 2), 32.25);
1558 CHECK_EQ(*(global + 3), 65.0); 1560 CHECK_EQ(*(global + 3), 65.0);
1559 } 1561 }
1560 #endif // SIMD_LOWERING_TARGET 1562 #endif // SIMD_LOWERING_TARGET
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698