From a27053c5d8269c6dd01aa6df98b6049d90a27da5 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Tue, 1 Mar 2016 12:00:31 -0800 Subject: [PATCH] Remove integer-integer conversions. Spec says: "..., and SIMD and TIMD are not both integer types." The bitwise conversions between signed and unsigned integer types remain. --- src/ecmascript_simd.js | 12 ++++++------ src/ecmascript_simd_tests.js | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ecmascript_simd.js b/src/ecmascript_simd.js index e9786d4..24737e4 100644 --- a/src/ecmascript_simd.js +++ b/src/ecmascript_simd.js @@ -787,12 +787,12 @@ int8x16.boolType = uint8x16.boolType = bool8x16; // SIMD from types. float32x4.from = [int32x4, uint32x4]; -int32x4.from = [float32x4, uint32x4]; -int16x8.from = [uint16x8]; -int8x16.from = [uint8x16]; -uint32x4.from = [float32x4, int32x4]; -uint16x8.from = [int16x8]; -uint8x16.from = [int8x16]; +int32x4.from = [float32x4]; +int16x8.from = []; +int8x16.from = []; +uint32x4.from = [float32x4]; +uint16x8.from = []; +uint8x16.from = []; // SIMD fromBits types. float32x4.fromBits = [int32x4, int16x8, int8x16, uint32x4, uint16x8, uint8x16]; diff --git a/src/ecmascript_simd_tests.js b/src/ecmascript_simd_tests.js index 87f59b3..c312b72 100644 --- a/src/ecmascript_simd_tests.js +++ b/src/ecmascript_simd_tests.js @@ -238,12 +238,12 @@ int8x16.boolType = uint8x16.boolType = bool8x16; // SIMD fromTIMD types. float32x4.from = [int32x4, uint32x4]; -int32x4.from = [float32x4, uint32x4]; -int16x8.from = [uint16x8]; -int8x16.from = [uint8x16]; -uint32x4.from = [float32x4, int32x4]; -uint16x8.from = [int16x8]; -uint8x16.from = [int8x16]; +int32x4.from = [float32x4]; +int16x8.from = []; +int8x16.from = []; +uint32x4.from = [float32x4]; +uint16x8.from = []; +uint8x16.from = []; // SIMD fromBits types. float32x4.fromBits = [int32x4, int16x8, int8x16, uint32x4, uint16x8, uint8x16];