Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSE2 support #11243

Merged
merged 9 commits into from
Jun 2, 2020
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
6 changes: 5 additions & 1 deletion emcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,11 @@ def has_c_source(args):
# We add these to the user's flags (newargs), but not when building .s or .S assembly files
cflags = shared.get_cflags(newargs)

newargs = [x for x in newargs if x not in ['-msse']]
# SSEx is implemented on top of SIMD128 instruction set. Convert -msse flag to -msimd128
sse_args = ['-msse', '-msse2']
if len([x for x in newargs if x in sse_args]) > 0:
newargs.append('-msimd128')
newargs = [x for x in newargs if x not in sse_args]

if not shared.Settings.STRICT:
# The preprocessor define EMSCRIPTEN is deprecated. Don't pass it to code
Expand Down
Loading