summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/RISCV/pcrel-lo12-invalid.s
blob: 7cf2494ad8e92312cb87a019a18d287c76c40142 (plain)
1
2
3
4
5
# RUN: not llvm-mc -triple riscv32 -mattr=-relax -filetype obj < %s -o /dev/null 2>&1 | FileCheck %s
# RUN: not llvm-mc -triple riscv32 -mattr=+relax -filetype obj < %s -o /dev/null 2>&1 | FileCheck %s

1:
  addi a0, a0, %pcrel_lo(1b) # CHECK: :[[@LINE]]:3: error: could not find corresponding %pcrel_hi
OpenPOWER on IntegriCloud