1 /* This testcase generated invalid assembly on IA-32,
2 since %gs:0 memory load was not exposed to the compiler
3 as memory load and mem to mem moves are not possible
6 /* { dg-options "-O2 -ftls-model=initial-exec" } */
7 /* { dg-options "-O2 -ftls-model=initial-exec -march=i686" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
8 /* { dg-require-effective-target tls } */
9 /* { dg-require-effective-target tls_runtime } */
15 unsigned int a
, b
, c
, d
, e
;
18 int bar (int x
, unsigned long y
, void *z
)
24 foo (int x
, int y
, const struct A
*z
)
31 if (d
== 0 && y
== 0x5402)
34 d
= bar (x
, 0x5401, &b
);
40 else if ((z
->c
& 0600) != (b
.c
& 0600)
41 || ((z
->c
& 060) && ((z
->c
& 060) != (b
.c
& 060))))