1 # RUN: not llvm-mc -triple riscv32 -filetype obj %s -o /dev/null 2>&1 | FileCheck %s
6 lui a0
, %hi
(tls+
0-.Ltmp1)
7 # CHECK: :[[#@LINE-1]]:2: error: expected relocatable expression
8 lw a0
, %lo
(tls+
0-.Ltmp1)(t0)
9 # CHECK: :[[#@LINE-1]]:2: error: expected relocatable expression
10 lui a0
, %tprel_hi
(tls+
0-.Ltmp1)
11 # CHECK: :[[#@LINE-1]]:2: error: expected relocatable expression
12 add a0
, a0
, tp
, %tprel_add
(tls+
0-.Ltmp1)
13 # CHECK: :[[#@LINE-1]]:2: error: expected relocatable expression
14 addi a0
, a0
, %tprel_lo
(tls+
0-.Ltmp1)
15 # CHECK: :[[#@LINE-1]]:2: error: expected relocatable expression
16 auipc a0
, %tls_ie_pcrel_hi
(tls+
0-.Ltmp1)
17 # CHECK: :[[#@LINE-1]]:2: error: expected relocatable expression
18 auipc a0
, %tls_gd_pcrel_hi
(tls+
0-.Ltmp1)
19 # CHECK: :[[#@LINE-1]]:2: error: expected relocatable expression
20 auipc a0
, %pcrel_hi
(tls-
.Ltmp1)
21 # CHECK: :[[#@LINE-1]]:2: error: expected relocatable expression
22 auipc a0
, %got_pcrel_hi
(tls-
.Ltmp1)
23 # CHECK: :[[#@LINE-1]]:2: error: expected relocatable expression
24 addi a0
, a0
, %pcrel_lo
(tls-
.Ltmp1)
25 # CHECK: :[[#@LINE-1]]:2: error: expected relocatable expression
29 # _ :[[#@LINE-1]]:2: error: expected relocatable expression