summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/frv/all-tls-initial-exec-pic.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/frv/all-tls-initial-exec-pic.c')
-rw-r--r--gcc/testsuite/gcc.target/frv/all-tls-initial-exec-pic.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/frv/all-tls-initial-exec-pic.c b/gcc/testsuite/gcc.target/frv/all-tls-initial-exec-pic.c
new file mode 100644
index 000000000..b51e34df6
--- /dev/null
+++ b/gcc/testsuite/gcc.target/frv/all-tls-initial-exec-pic.c
@@ -0,0 +1,12 @@
+/* { dg-options "-ftls-model=initial-exec -fpic -mfdpic" } */
+/* { dg-do compile } */
+extern __thread int x;
+extern void bar ();
+int *y;
+
+void foo (void)
+{
+ bar ();
+ y = &x;
+}
+/* { dg-final { scan-assembler "ld.*#gottlsoff12" } } */