aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr66470.c
blob: 3515b6d289294cc978f3c06a725ad2788cec1eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR target/66470 */
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-require-effective-target maybe_x32 } */
/* { dg-options "-O2 -mx32 -maddress-mode=long" } */
/* { dg-require-effective-target tls } */

extern __thread unsigned __int128 c[10];
int d;

unsigned __int128
foo (void)
{
  return c[d];
}