diff options
author | Soni L <EnderMoneyMod@gmail.com> | 2024-03-26 12:17:09 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-26 08:17:09 -0700 |
commit | 356931a867c7d642bc282fff46a1c95ab0e843f3 (patch) | |
tree | 620d110a66150704dd417d94ea04f588eb8118a6 /src | |
parent | ff0316825d481226c8933e2e8c466ef3ec53067b (diff) | |
download | wabt-356931a867c7d642bc282fff46a1c95ab0e843f3.tar.gz wabt-356931a867c7d642bc282fff46a1c95ab0e843f3.tar.bz2 wabt-356931a867c7d642bc282fff46a1c95ab0e843f3.zip |
Add macOS arm64 support and CI testing (#2406)
Diffstat (limited to 'src')
-rw-r--r-- | src/prebuilt/wasm2c_simd_source_declarations.cc | 4 | ||||
-rw-r--r-- | src/template/wasm2c_simd.declarations.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/prebuilt/wasm2c_simd_source_declarations.cc b/src/prebuilt/wasm2c_simd_source_declarations.cc index 7c0c9fb4..5b903b26 100644 --- a/src/prebuilt/wasm2c_simd_source_declarations.cc +++ b/src/prebuilt/wasm2c_simd_source_declarations.cc @@ -2,6 +2,10 @@ const char* s_simd_source_declarations = R"w2c_template(#if defined(__GNUC__) && )w2c_template" R"w2c_template(#define SIMD_FORCE_READ(var) __asm__("" ::"x"(var)); )w2c_template" +R"w2c_template(#elif defined(__GNUC__) && defined(__aarch64__) +)w2c_template" +R"w2c_template(#define SIMD_FORCE_READ(var) __asm__("" ::"w"(var)); +)w2c_template" R"w2c_template(#else )w2c_template" R"w2c_template(#define SIMD_FORCE_READ(var) diff --git a/src/template/wasm2c_simd.declarations.c b/src/template/wasm2c_simd.declarations.c index d37631ad..0e2c9511 100644 --- a/src/template/wasm2c_simd.declarations.c +++ b/src/template/wasm2c_simd.declarations.c @@ -1,5 +1,7 @@ #if defined(__GNUC__) && defined(__x86_64__) #define SIMD_FORCE_READ(var) __asm__("" ::"x"(var)); +#elif defined(__GNUC__) && defined(__aarch64__) +#define SIMD_FORCE_READ(var) __asm__("" ::"w"(var)); #else #define SIMD_FORCE_READ(var) #endif |