aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MC/RISCV/xandesperf-fixups-diagnostics.s
blob: 2f799977f764f04995ba711ae985c8acce5c23f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# RUN: not llvm-mc -triple riscv32 -filetype obj -mattr=+xandesperf < %s -o /dev/null 2>&1 | FileCheck %s

  nds.bbc t0, 7, far_distant # CHECK: :[[@LINE]]:18: error: fixup value out of range
  nds.bbc t0, 7, unaligned # CHECK: :[[@LINE]]:18: error: fixup value must be 2-byte aligned

  .byte 0
unaligned:
  .byte 0
  .byte 0
  .byte 0

  .space 1<<10
far_distant: