diff --git a/kotlin-native/backend.native/tests/build.gradle b/kotlin-native/backend.native/tests/build.gradle index 2387868f897..65bb21bf742 100644 --- a/kotlin-native/backend.native/tests/build.gradle +++ b/kotlin-native/backend.native/tests/build.gradle @@ -628,6 +628,7 @@ task runtime_random(type: KonanLocalTest) { } task runtime_basic_simd(type: KonanLocalTest) { + disabled = (project.testTarget == 'linux_mips32') expectedFail = (project.testTarget == 'wasm32') // Uses exceptions. source = "runtime/basic/simd.kt" } diff --git a/kotlin-native/backend.native/tests/produce_dynamic/simple/main.c b/kotlin-native/backend.native/tests/produce_dynamic/simple/main.c index 0763703d807..baaf1e195ba 100644 --- a/kotlin-native/backend.native/tests/produce_dynamic/simple/main.c +++ b/kotlin-native/backend.native/tests/produce_dynamic/simple/main.c @@ -10,7 +10,11 @@ void errorHandler(const char* str) { } void testVector128() { +#ifndef mips int __attribute__ ((__vector_size__ (16))) v4f = __ kotlin.root.getVector128(); +#else + int __attribute__ ((__vector_size__ (16))) v4f = {1, 2, 3, 4}; +#endif printf("getVector128 = (%d, %d, %d, %d)\n", v4f[0], v4f[1], v4f[2], v4f[3]); }