[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / clang / test / CodeGen / RISCV / tls-dialect.c
blobe624a8b3fe4e676d50475485a9a5185a9cea5d88
1 // REQUIRES: riscv-registered-target
2 /// cc1 -enable-tlsdesc (due to -mtls-dialect=desc) enables TLSDESC.
3 // RUN: %clang_cc1 -triple riscv64 -S -mrelocation-model pic -pic-level 1 -enable-tlsdesc %s -o - | FileCheck %s --check-prefix=DESC
4 // RUN: %clang_cc1 -triple riscv64 -S -mrelocation-model pic -pic-level 1 %s -o - | FileCheck %s --check-prefix=NODESC
6 __thread int x;
8 // DESC: %tlsdesc_hi
9 // DESC-NOT: %tls_gd_pcrel_hi
10 // NODESC: %tls_gd_pcrel_hi
11 // NODESC-NOT: %tlsdesc_hi
12 int use() {
13 return x;