diff options
author | Sam Clegg <sbc@chromium.org> | 2022-03-19 02:29:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-19 02:29:35 +0000 |
commit | d2f54b40e736cdee2a0ff9fc15e9323ccb9d7c20 (patch) | |
tree | 3f6c5dafbf558d29e0bf72a33be973d55d6c10ef /test/example | |
parent | 88c2e4377df7dbe65bc8ef629ea409cd9df6a860 (diff) | |
download | binaryen-d2f54b40e736cdee2a0ff9fc15e9323ccb9d7c20.tar.gz binaryen-d2f54b40e736cdee2a0ff9fc15e9323ccb9d7c20.tar.bz2 binaryen-d2f54b40e736cdee2a0ff9fc15e9323ccb9d7c20.zip |
Add support for extended-const proposal (#4529)
See https://github.com/WebAssembly/extended-const
Diffstat (limited to 'test/example')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 1 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index fb3fc87b0..90784d7ac 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -303,6 +303,7 @@ void test_features() { printf("BinaryenFeatureTypedFunctionReferences: %d\n", BinaryenFeatureTypedFunctionReferences()); printf("BinaryenFeatureRelaxedSIMD: %d\n", BinaryenFeatureRelaxedSIMD()); + printf("BinaryenFeatureExtendedConst: %d\n", BinaryenFeatureExtendedConst()); printf("BinaryenFeatureAll: %d\n", BinaryenFeatureAll()); } diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index f5e5d6d67..f759864a8 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -27,7 +27,8 @@ BinaryenFeatureGC: 1024 BinaryenFeatureMemory64: 2048 BinaryenFeatureTypedFunctionReferences: 4096 BinaryenFeatureRelaxedSIMD: 16384 -BinaryenFeatureAll: 32767 +BinaryenFeatureExtendedConst: 32768 +BinaryenFeatureAll: 65535 (f32.neg (f32.const -33.61199951171875) ) |