diff options
Diffstat (limited to 'test/example')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 29 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 126 |
2 files changed, 40 insertions, 115 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index aa82723b4..e4e8c37b0 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -403,19 +403,17 @@ void test_core() { makeUnary(module, BinaryenSplatVecF32x4(), f32), makeUnary(module, BinaryenSplatVecF64x2(), f64), makeUnary(module, BinaryenNotVec128(), v128), + makeUnary(module, BinaryenAnyTrueVec128(), v128), makeUnary(module, BinaryenAbsVecI8x16(), v128), makeUnary(module, BinaryenNegVecI8x16(), v128), - makeUnary(module, BinaryenAnyTrueVecI8x16(), v128), makeUnary(module, BinaryenAllTrueVecI8x16(), v128), makeUnary(module, BinaryenBitmaskVecI8x16(), v128), makeUnary(module, BinaryenAbsVecI16x8(), v128), makeUnary(module, BinaryenNegVecI16x8(), v128), - makeUnary(module, BinaryenAnyTrueVecI16x8(), v128), makeUnary(module, BinaryenAllTrueVecI16x8(), v128), makeUnary(module, BinaryenBitmaskVecI16x8(), v128), makeUnary(module, BinaryenAbsVecI32x4(), v128), makeUnary(module, BinaryenNegVecI32x4(), v128), - makeUnary(module, BinaryenAnyTrueVecI32x4(), v128), makeUnary(module, BinaryenAllTrueVecI32x4(), v128), makeUnary(module, BinaryenBitmaskVecI32x4(), v128), makeUnary(module, BinaryenNegVecI64x2(), v128), @@ -427,20 +425,16 @@ void test_core() { makeUnary(module, BinaryenSqrtVecF64x2(), v128), makeUnary(module, BinaryenTruncSatSVecF32x4ToVecI32x4(), v128), makeUnary(module, BinaryenTruncSatUVecF32x4ToVecI32x4(), v128), - makeUnary(module, BinaryenTruncSatSVecF64x2ToVecI64x2(), v128), - makeUnary(module, BinaryenTruncSatUVecF64x2ToVecI64x2(), v128), makeUnary(module, BinaryenConvertSVecI32x4ToVecF32x4(), v128), makeUnary(module, BinaryenConvertUVecI32x4ToVecF32x4(), v128), - makeUnary(module, BinaryenConvertSVecI64x2ToVecF64x2(), v128), - makeUnary(module, BinaryenConvertUVecI64x2ToVecF64x2(), v128), - makeUnary(module, BinaryenWidenLowSVecI8x16ToVecI16x8(), v128), - makeUnary(module, BinaryenWidenHighSVecI8x16ToVecI16x8(), v128), - makeUnary(module, BinaryenWidenLowUVecI8x16ToVecI16x8(), v128), - makeUnary(module, BinaryenWidenHighUVecI8x16ToVecI16x8(), v128), - makeUnary(module, BinaryenWidenLowSVecI16x8ToVecI32x4(), v128), - makeUnary(module, BinaryenWidenHighSVecI16x8ToVecI32x4(), v128), - makeUnary(module, BinaryenWidenLowUVecI16x8ToVecI32x4(), v128), - makeUnary(module, BinaryenWidenHighUVecI16x8ToVecI32x4(), v128), + makeUnary(module, BinaryenExtendLowSVecI8x16ToVecI16x8(), v128), + makeUnary(module, BinaryenExtendHighSVecI8x16ToVecI16x8(), v128), + makeUnary(module, BinaryenExtendLowUVecI8x16ToVecI16x8(), v128), + makeUnary(module, BinaryenExtendHighUVecI8x16ToVecI16x8(), v128), + makeUnary(module, BinaryenExtendLowSVecI16x8ToVecI32x4(), v128), + makeUnary(module, BinaryenExtendHighSVecI16x8ToVecI32x4(), v128), + makeUnary(module, BinaryenExtendLowUVecI16x8ToVecI32x4(), v128), + makeUnary(module, BinaryenExtendHighUVecI16x8ToVecI32x4(), v128), // Binary makeBinary(module, BinaryenAddInt32(), i32), makeBinary(module, BinaryenSubFloat64(), f64), @@ -526,7 +520,6 @@ void test_core() { makeBinary(module, BinaryenSubVecI8x16(), v128), makeBinary(module, BinaryenSubSatSVecI8x16(), v128), makeBinary(module, BinaryenSubSatUVecI8x16(), v128), - makeBinary(module, BinaryenMulVecI8x16(), v128), makeBinary(module, BinaryenMinSVecI8x16(), v128), makeBinary(module, BinaryenMinUVecI8x16(), v128), makeBinary(module, BinaryenMaxSVecI8x16(), v128), @@ -648,10 +641,6 @@ void test_core() { // Other SIMD makeSIMDShuffle(module), makeSIMDTernary(module, BinaryenBitselectVec128()), - makeSIMDTernary(module, BinaryenQFMAVecF32x4()), - makeSIMDTernary(module, BinaryenQFMSVecF32x4()), - makeSIMDTernary(module, BinaryenQFMAVecF64x2()), - makeSIMDTernary(module, BinaryenQFMSVecF64x2()), // Bulk memory makeMemoryInit(module), makeDataDrop(module), diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index 4cad3e659..e67850376 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -312,17 +312,17 @@ BinaryenFeatureAll: 8191 ) ) (drop - (i8x16.abs + (v128.any_true (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i8x16.neg + (i8x16.abs (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i8x16.any_true + (i8x16.neg (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) @@ -347,11 +347,6 @@ BinaryenFeatureAll: 8191 ) ) (drop - (i16x8.any_true - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - ) - ) - (drop (i16x8.all_true (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) @@ -372,11 +367,6 @@ BinaryenFeatureAll: 8191 ) ) (drop - (i32x4.any_true - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - ) - ) - (drop (i32x4.all_true (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) @@ -432,16 +422,6 @@ BinaryenFeatureAll: 8191 ) ) (drop - (i64x2.trunc_sat_f64x2_s - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - ) - ) - (drop - (i64x2.trunc_sat_f64x2_u - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - ) - ) - (drop (f32x4.convert_i32x4_s (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) @@ -452,52 +432,42 @@ BinaryenFeatureAll: 8191 ) ) (drop - (f64x2.convert_i64x2_s - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - ) - ) - (drop - (f64x2.convert_i64x2_u + (i16x8.extend_low_i8x16_s (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i16x8.widen_low_i8x16_s + (i16x8.extend_high_i8x16_s (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i16x8.widen_high_i8x16_s + (i16x8.extend_low_i8x16_u (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i16x8.widen_low_i8x16_u + (i16x8.extend_high_i8x16_u (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i16x8.widen_high_i8x16_u + (i32x4.extend_low_i16x8_s (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i32x4.widen_low_i16x8_s + (i32x4.extend_high_i16x8_s (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i32x4.widen_high_i16x8_s + (i32x4.extend_low_i16x8_u (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i32x4.widen_low_i16x8_u - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - ) - ) - (drop - (i32x4.widen_high_i16x8_u + (i32x4.extend_high_i16x8_u (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) @@ -976,13 +946,13 @@ BinaryenFeatureAll: 8191 ) ) (drop - (i8x16.add_saturate_s + (i8x16.add_sat_s (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i8x16.add_saturate_u + (i8x16.add_sat_u (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) @@ -994,19 +964,13 @@ BinaryenFeatureAll: 8191 ) ) (drop - (i8x16.sub_saturate_s + (i8x16.sub_sat_s (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i8x16.sub_saturate_u - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - ) - ) - (drop - (i8x16.mul + (i8x16.sub_sat_u (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) @@ -1048,13 +1012,13 @@ BinaryenFeatureAll: 8191 ) ) (drop - (i16x8.add_saturate_s + (i16x8.add_sat_s (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i16x8.add_saturate_u + (i16x8.add_sat_u (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) @@ -1066,13 +1030,13 @@ BinaryenFeatureAll: 8191 ) ) (drop - (i16x8.sub_saturate_s + (i16x8.sub_sat_s (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) (drop - (i16x8.sub_saturate_u + (i16x8.sub_sat_u (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) @@ -1340,7 +1304,7 @@ BinaryenFeatureAll: 8191 ) ) (drop - (v8x16.swizzle + (i8x16.swizzle (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) @@ -1494,57 +1458,57 @@ BinaryenFeatureAll: 8191 ) ) (drop - (v8x16.load_splat + (v128.load8_splat (i32.const 128) ) ) (drop - (v16x8.load_splat offset=16 align=1 + (v128.load16_splat offset=16 align=1 (i32.const 128) ) ) (drop - (v32x4.load_splat offset=16 + (v128.load32_splat offset=16 (i32.const 128) ) ) (drop - (v64x2.load_splat align=4 + (v128.load64_splat align=4 (i32.const 128) ) ) (drop - (i16x8.load8x8_s + (v128.load8x8_s (i32.const 128) ) ) (drop - (i16x8.load8x8_u + (v128.load8x8_u (i32.const 128) ) ) (drop - (i32x4.load16x4_s + (v128.load16x4_s (i32.const 128) ) ) (drop - (i32x4.load16x4_u + (v128.load16x4_u (i32.const 128) ) ) (drop - (i64x2.load32x2_s + (v128.load32x2_s (i32.const 128) ) ) (drop - (i64x2.load32x2_u + (v128.load32x2_u (i32.const 128) ) ) (drop - (v8x16.shuffle 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 + (i8x16.shuffle 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) @@ -1556,34 +1520,6 @@ BinaryenFeatureAll: 8191 (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) ) ) - (drop - (f32x4.qfma - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - ) - ) - (drop - (f32x4.qfms - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - ) - ) - (drop - (f64x2.qfma - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - ) - ) - (drop - (f64x2.qfms - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - (v128.const i32x4 0x04030201 0x08070605 0x0c0b0a09 0x100f0e0d) - ) - ) (memory.init 0 (i32.const 1024) (i32.const 0) |