Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/prebuilt/wasm2c_simd_source_declarations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ R"w2c_template(#elif defined(__aarch64__)
)w2c_template"
R"w2c_template(#define SIMD_FORCE_READ(var) __asm__("" ::"w"(var));
)w2c_template"
R"w2c_template(#elif defined(__riscv)
R"w2c_template(#elif defined(__riscv) && defined(__riscv_vector)
)w2c_template"
R"w2c_template(#define SIMD_FORCE_READ(var) __asm__("" ::"vr"(var));
)w2c_template"
Expand Down
2 changes: 1 addition & 1 deletion src/template/wasm2c_simd.declarations.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define SIMD_FORCE_READ(var) __asm__("" ::"x"(var));
#elif defined(__aarch64__)
#define SIMD_FORCE_READ(var) __asm__("" ::"w"(var));
#elif defined(__riscv)
#elif defined(__riscv) && defined(__riscv_vector)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine. Could you send a PR with only the RISC-v change that is not stacked on the PowerPC and default case change so we can land this separately?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. See also #2878 (comment).

#define SIMD_FORCE_READ(var) __asm__("" ::"vr"(var));
#elif defined(__s390x__)
#define SIMD_FORCE_READ(var) __asm__("" ::"d"(var));
Expand Down
Loading