mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 14:50:57 +08:00
[AArch64] Add more TLS local executable testcases
2015-10-02 Jiong Wang <jiong.wang@arm.com> * gcc.target/aarch64/tlsle12_tiny_1.c: New testcase for tiny model. * gcc.target/aarch64/tlsle24_tiny_1.c: Likewise. * gcc.target/aarch64/tlsle_sizeadj_tiny_1.c: TLS size truncation test for tiny model. * gcc.target/aarch64/tlsle_sizeadj_small_1.c: TLS size truncation test for small model. From-SVN: r228395
This commit is contained in:
parent
1edc26adde
commit
0ff3ac5f44
@ -1,3 +1,12 @@
|
||||
2015-10-02 Jiong Wang <jiong.wang@arm.com>
|
||||
|
||||
* gcc.target/aarch64/tlsle12_tiny_1.c: New testcase for tiny model.
|
||||
* gcc.target/aarch64/tlsle24_tiny_1.c: Likewise.
|
||||
* gcc.target/aarch64/tlsle_sizeadj_tiny_1.c: TLS size truncation test
|
||||
for tiny model.
|
||||
* gcc.target/aarch64/tlsle_sizeadj_small_1.c: TLS size truncation test
|
||||
for small model.
|
||||
|
||||
2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
|
||||
|
||||
* gcc.target/i386/vect-pack-trunc-1.c: New test.
|
||||
|
8
gcc/testsuite/gcc.target/aarch64/tlsle12_tiny_1.c
Normal file
8
gcc/testsuite/gcc.target/aarch64/tlsle12_tiny_1.c
Normal file
@ -0,0 +1,8 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target tls_native } */
|
||||
/* { dg-options "-O2 -fpic -ftls-model=local-exec -mtls-size=12 -mcmodel=tiny --save-temps" } */
|
||||
/* { dg-skip-if "TLS 12bit size for tiny" { aarch64*-*-* } { "-mcmodel=small" "-mcmodel=large" } { "" } } */
|
||||
|
||||
#include "tls_1.x"
|
||||
|
||||
/* { dg-final { scan-assembler-times "#:tprel_lo12" 2 } } */
|
9
gcc/testsuite/gcc.target/aarch64/tlsle24_tiny_1.c
Normal file
9
gcc/testsuite/gcc.target/aarch64/tlsle24_tiny_1.c
Normal file
@ -0,0 +1,9 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target tls_native } */
|
||||
/* { dg-options "-O2 -fpic -ftls-model=local-exec -mtls-size=24 -mcmodel=tiny --save-temps" } */
|
||||
/* { dg-skip-if "TLS 24bit size for tiny" { aarch64*-*-* } { "-mcmodel=small" "-mcmodel=large" } { "" } } */
|
||||
|
||||
#include "tls_1.x"
|
||||
|
||||
/* { dg-final { scan-assembler-times "#:tprel_lo12_nc" 2 } } */
|
||||
/* { dg-final { scan-assembler-times "#:tprel_hi12" 2 } } */
|
10
gcc/testsuite/gcc.target/aarch64/tlsle_sizeadj_small_1.c
Normal file
10
gcc/testsuite/gcc.target/aarch64/tlsle_sizeadj_small_1.c
Normal file
@ -0,0 +1,10 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target tls_native } */
|
||||
/* { dg-require-effective-target aarch64_tlsle32 } */
|
||||
/* { dg-options "-O2 -fpic -ftls-model=local-exec -mtls-size=48 --save-temps" } */
|
||||
/* { dg-skip-if "TLS size trunc for small" { aarch64*-*-* } { "-mcmodel=tiny" "-mcmodel=large" } { "" } } */
|
||||
|
||||
#include "tls_1.x"
|
||||
|
||||
/* { dg-final { scan-assembler-times "#:tprel_g1" 2 } } */
|
||||
/* { dg-final { scan-assembler-times "#:tprel_g0_nc" 2 } } */
|
9
gcc/testsuite/gcc.target/aarch64/tlsle_sizeadj_tiny_1.c
Normal file
9
gcc/testsuite/gcc.target/aarch64/tlsle_sizeadj_tiny_1.c
Normal file
@ -0,0 +1,9 @@
|
||||
/* { dg-do run } */
|
||||
/* { dg-require-effective-target tls_native } */
|
||||
/* { dg-options "-O2 -fpic -ftls-model=local-exec -mtls-size=32 -mcmodel=tiny --save-temps" } */
|
||||
/* { dg-skip-if "TLS size trunc for tiny" { aarch64*-*-* } { "-mcmodel=small" "-mcmodel=large" } { "" } } */
|
||||
|
||||
#include "tls_1.x"
|
||||
|
||||
/* { dg-final { scan-assembler-times "#:tprel_lo12_nc" 2 } } */
|
||||
/* { dg-final { scan-assembler-times "#:tprel_hi12" 2 } } */
|
Loading…
x
Reference in New Issue
Block a user