Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/tls-le-relax.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mcmodel=normal -mexplicit-relocs" } */
3 /* { dg-final { scan-assembler "%le_add_r" { target tls_le_relax } } } */
4
5 __attribute__ ((tls_model ("local-exec"))) __thread int a;
6
7 void
8 test (void)
9 {
10 a = 10;
11 }
12