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-*-* } && ilp32 } } } */
8 /* { dg-require-effective-target tls } */
14 unsigned int a
, b
, c
, d
, e
;
17 int bar (int x
, unsigned long y
, void *z
)
23 foo (int x
, int y
, const struct A
*z
)
30 if (d
== 0 && y
== 0x5402)
33 d
= bar (x
, 0x5401, &b
);
39 else if ((z
->c
& 0600) != (b
.c
& 0600)
40 || ((z
->c
& 060) && ((z
->c
& 060) != (b
.c
& 060))))