| OLD | NEW | 
|     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 13 matching lines...) Expand all  Loading... | 
|    24 typedef int32_t (*Int32ShiftOp)(int32_t, int); |    24 typedef int32_t (*Int32ShiftOp)(int32_t, int); | 
|    25 typedef int16_t (*Int16UnOp)(int16_t); |    25 typedef int16_t (*Int16UnOp)(int16_t); | 
|    26 typedef int16_t (*Int16BinOp)(int16_t, int16_t); |    26 typedef int16_t (*Int16BinOp)(int16_t, int16_t); | 
|    27 typedef int (*Int16CompareOp)(int16_t, int16_t); |    27 typedef int (*Int16CompareOp)(int16_t, int16_t); | 
|    28 typedef int16_t (*Int16ShiftOp)(int16_t, int); |    28 typedef int16_t (*Int16ShiftOp)(int16_t, int); | 
|    29 typedef int8_t (*Int8UnOp)(int8_t); |    29 typedef int8_t (*Int8UnOp)(int8_t); | 
|    30 typedef int8_t (*Int8BinOp)(int8_t, int8_t); |    30 typedef int8_t (*Int8BinOp)(int8_t, int8_t); | 
|    31 typedef int (*Int8CompareOp)(int8_t, int8_t); |    31 typedef int (*Int8CompareOp)(int8_t, int8_t); | 
|    32 typedef int8_t (*Int8ShiftOp)(int8_t, int); |    32 typedef int8_t (*Int8ShiftOp)(int8_t, int); | 
|    33  |    33  | 
|    34 #if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_IA32 |    34 #if !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_IA32 && \ | 
 |    35     !V8_TARGET_ARCH_MIPS && !V8_TARGET_ARCH_MIPS64 | 
|    35 #define SIMD_LOWERING_TARGET 1 |    36 #define SIMD_LOWERING_TARGET 1 | 
|    36 #else |    37 #else | 
|    37 #define SIMD_LOWERING_TARGET 0 |    38 #define SIMD_LOWERING_TARGET 0 | 
|    38 #endif  // !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_IA32 |    39 #endif | 
|    39  |    40  | 
|    40 // Generic expected value functions. |    41 // Generic expected value functions. | 
|    41 template <typename T> |    42 template <typename T> | 
|    42 T Negate(T a) { |    43 T Negate(T a) { | 
|    43   return -a; |    44   return -a; | 
|    44 } |    45 } | 
|    45  |    46  | 
|    46 template <typename T> |    47 template <typename T> | 
|    47 T Add(T a, T b) { |    48 T Add(T a, T b) { | 
|    48   return a + b; |    49   return a + b; | 
| (...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1855         WASM_SIMD_I32x4_EXTRACT_LANE( |  1856         WASM_SIMD_I32x4_EXTRACT_LANE( | 
|  1856             0, WASM_LOAD_MEM(MachineType::Simd128(), WASM_ZERO))); |  1857             0, WASM_LOAD_MEM(MachineType::Simd128(), WASM_ZERO))); | 
|  1857  |  1858  | 
|  1858   FOR_INT32_INPUTS(i) { |  1859   FOR_INT32_INPUTS(i) { | 
|  1859     int32_t expected = *i; |  1860     int32_t expected = *i; | 
|  1860     r.module().WriteMemory(&memory[0], expected); |  1861     r.module().WriteMemory(&memory[0], expected); | 
|  1861     CHECK_EQ(expected, r.Call()); |  1862     CHECK_EQ(expected, r.Call()); | 
|  1862   } |  1863   } | 
|  1863 } |  1864 } | 
|  1864 #endif  // V8_TARGET_ARCH_ARM || SIMD_LOWERING_TARGET |  1865 #endif  // V8_TARGET_ARCH_ARM || SIMD_LOWERING_TARGET | 
| OLD | NEW |