simd-128 basic support (#3498)

This commit is contained in:
Vladimir Ivanov
2019-11-13 19:16:35 +03:00
committed by GitHub
parent dd19cb76c9
commit 2358edf4e8
43 changed files with 497 additions and 56 deletions
@@ -9,6 +9,11 @@ void errorHandler(const char* str) {
printf("Error handler: %s\n", str);
}
void testVector128() {
int __attribute__ ((__vector_size__ (16))) v4f = __ kotlin.root.getVector128();
printf("getVector128 = (%d, %d, %d, %d)\n", v4f[0], v4f[1], v4f[2], v4f[3]);
}
int main(void) {
T_(Singleton) singleton = __ kotlin.root.Singleton._instance();
T_(Base) base = __ kotlin.root.Base.Base();
@@ -65,6 +70,8 @@ int main(void) {
__ kotlin.root.testNullableWithNulls(nullableIntNull, nullableUnitNull);
testVector128();
__ DisposeStablePointer(singleton.pinned);
__ DisposeString(string1);
__ DisposeString(string2);