summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tls/opt-8.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-05 20:29:06 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-05 20:29:06 +0000
commitf7998397e8b9f476da226d470f98b6ceadbdde19 (patch)
tree0afab63e815744564a65ada194bc5bd5d65e5f3f /gcc/testsuite/gcc.dg/tls/opt-8.c
parent9309c9945b3d9044b5f1942beb749290ee5a63f2 (diff)
downloadgcc-f7998397e8b9f476da226d470f98b6ceadbdde19.tar.gz
PR target/18910
* config/i386/i386.c (ix86_expand_move): Handle tls symbols with an offset. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92968 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/tls/opt-8.c')
-rw-r--r--gcc/testsuite/gcc.dg/tls/opt-8.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tls/opt-8.c b/gcc/testsuite/gcc.dg/tls/opt-8.c
new file mode 100644
index 00000000000..dec0eabcb4c
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tls/opt-8.c
@@ -0,0 +1,13 @@
+/* PR 18910 */
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+static __thread void *foo [2];
+void
+test1 (void)
+{
+ unsigned int s;
+
+ for (s = 0; s < 2; ++s)
+ foo [s] = &foo[s];
+}