@@ -2,6 +2,7 @@
/* { dg-require-effective-target tls } */
/* { dg-options "-O2 -fPIC -msve-vector-bits=256" } */
/* { dg-require-effective-target fpic } */
+/* { dg-additional-options "-ftls-model=global-dynamic" { target *-*-rtems* } } */
#include <stdint.h>
@@ -9,4 +9,5 @@ __thread int x;
void reference() { x++; }
-/* { dg-final { scan-ipa-dump "Varpool flags: tls-local-dynamic" "whole-program" } } */
+/* rtems defaults to local-exec, others should get local-dynamic. */
+/* { dg-final { scan-ipa-dump "Varpool flags: tls-local-" "whole-program" } } */
@@ -9,4 +9,5 @@ __thread int x;
void reference() { x++; }
-/* { dg-final { scan-ipa-dump "Varpool flags: tls-local-dynamic" "whole-program" } } */
+/* rtems defaults to local-exec, others should get local-dynamic. */
+/* { dg-final { scan-ipa-dump "Varpool flags: tls-local-" "whole-program" } } */
@@ -13,4 +13,5 @@ __thread int x;
void reference() { x++; }
-/* { dg-final { scan-ipa-dump "Varpool flags: tls-local-dynamic" "whole-program" } } */
+/* rtems defaults to local-exec, others should get local-dynamic. */
+/* { dg-final { scan-ipa-dump "Varpool flags: tls-local-" "whole-program" } } */
@@ -1,5 +1,6 @@
/* { dg-options "-O2 -fPIC -msve-vector-bits=256" } */
/* { dg-require-effective-target fpic } */
+/* { dg-additional-options "-ftls-model=global-dynamic" { target *-*-rtems* } } */
typedef unsigned int v8si __attribute__((vector_size(32)));
@@ -2,6 +2,7 @@
/* { dg-options "-O3 -fpic -msve-vector-bits=256 -fno-schedule-insns" } */
/* { dg-require-effective-target fpic } */
/* { dg-require-effective-target tls_native } */
+/* { dg-additional-options "-ftls-model=global-dynamic" { target *-*-rtems* } } */
typedef float v8si __attribute__ ((vector_size (32)));
@@ -2,6 +2,7 @@
/* { dg-options "-O3 -fpic -msve-vector-bits=512 -fno-schedule-insns" } */
/* { dg-require-effective-target fpic } */
/* { dg-require-effective-target tls_native } */
+/* { dg-additional-options "-ftls-model=global-dynamic" { target *-*-rtems* } } */
typedef float v16si __attribute__ ((vector_size (64)));