Skip to content

Conversation

@MaxGraey
Copy link
Member

@MaxGraey MaxGraey commented Nov 13, 2021

Before we could only accept constants due to lowering to v128.const only. In this PR simd constructions now accept variables as well. All this lower to splat or const + replace_line-s as appropriate. For example:

// mixed const and vars arguments
const v1 = f32x4(0.0, 2.0, fx, fy); // where fx, fy non-precomputed expressions
// only var arguments
const v2 = i64x2(x, y);
  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@MaxGraey MaxGraey requested a review from dcodeIO April 9, 2022 09:32
@dcodeIO dcodeIO merged commit 3d84f2d into AssemblyScript:main Apr 9, 2022
@dcodeIO
Copy link
Member

dcodeIO commented Apr 9, 2022

Thanks :)

@MaxGraey MaxGraey deleted the v128-from-vars branch April 9, 2022 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants