1 # RUN: not llvm-mc -triple riscv32 < %s 2>&1 | FileCheck %s
2 # RUN: not llvm-mc -triple riscv64 < %s 2>&1 | FileCheck %s
4 tail
1234 # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
5 tail
%pcrel_hi
(1234) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
6 tail
%pcrel_lo
(1234) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
7 tail
%pcrel_hi
(foo
) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
8 tail
%pcrel_lo
(foo
) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
9 tail
%hi
(1234) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
10 tail
%lo
(1234) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
11 tail
%hi
(foo
) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name
12 tail
%lo
(foo
) # CHECK: :[[@LINE]]:6: error: operand must be a bare symbol name