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

[Known Issue] SIMD vector support for 32-bit architectures is missing #997

Open
mbektchiev opened this issue Sep 27, 2018 · 3 comments
Open
Assignees

Comments

@mbektchiev
Copy link
Contributor

mbektchiev commented Sep 27, 2018

There's currently no support for calling functions with SIMD vector type arguments and return values on i386 and armv7 architectures.

simd_float2, simd_float3, simd_float4, simd_double2 tests are failing and app crashes on simd_double3 with EXC_BAD_ACCESS (code=EXC_ARM_DA_ALIGN, address=0x126e978d)

@mbektchiev mbektchiev changed the title Some SIMD vector tests are not passing when building with Xcode 10 Some SIMD vector tests are not passing on 32-bit architectures Oct 31, 2018
@mbektchiev mbektchiev changed the title Some SIMD vector tests are not passing on 32-bit architectures feat: SIMD vector support for 32-bit architectures is missing Oct 31, 2018
@mbektchiev mbektchiev added this to the 5.0.1 milestone Dec 3, 2018
@mbektchiev mbektchiev self-assigned this Dec 3, 2018
@mbektchiev mbektchiev changed the title feat: SIMD vector support for 32-bit architectures is missing bug: SIMD vector support for 32-bit architectures is missing Dec 3, 2018
@mbektchiev
Copy link
Contributor Author

Merged with #1002(master) and #1024(release)

@Natalia-Hristova
Copy link
Contributor

After running app with added plugin which methods return different types of vectors, returned values of simd_double3 and simd_double4 are correct but these for simd_float2, simd_float3, simd_float4, simd_double2 are not (all values of the vectors are 0).

@mbektchiev mbektchiev changed the title bug: SIMD vector support for 32-bit architectures is missing [Known Issue] SIMD vector support for 32-bit architectures is missing Dec 18, 2018
@mbektchiev
Copy link
Contributor Author

The fix we've merged was mistakenly related to this issue.

It appears that for the armv7 and i386 architectures libffi cannot handle SIMD vector types as arguments and return values at the moment. The only way to use such functions in NativeScript (if these architectures need to be supported) is by calling them from native code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants