Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / expressions.s
blob897004b6463680040f26aca427e68b46f48075ef
1 # RUN: not llvm-mc -triple riscv32 -filetype obj %s -o /dev/null 2>&1 | FileCheck %s
3 .Ltmp1:
4 .quad tls
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
27 # tail tls+32
28 # tail tls-tls
29 # _ :[[#@LINE-1]]:2: error: expected relocatable expression