NativeScript / ios-jsc

NativeScript for iOS using JavaScriptCore

Home Page:http://docs.nativescript.org/runtimes/ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

mbektchiev opened this issue · comments

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)

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

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).

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.