[llvm] 7e99427 - [NFC][LoongArch] Polish the test for fixup diagnostics
Weining Lu via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 21 19:20:13 PDT 2022
Author: Weining Lu
Date: 2022-10-22T10:19:47+08:00
New Revision: 7e99427e9fdf48c8455fe9184c842429207d5485
URL: https://github.com/llvm/llvm-project/commit/7e99427e9fdf48c8455fe9184c842429207d5485
DIFF: https://github.com/llvm/llvm-project/commit/7e99427e9fdf48c8455fe9184c842429207d5485.diff
LOG: [NFC][LoongArch] Polish the test for fixup diagnostics
Added:
Modified:
llvm/test/MC/LoongArch/Relocations/fixups-diagnostics.s
Removed:
################################################################################
diff --git a/llvm/test/MC/LoongArch/Relocations/fixups-diagnostics.s b/llvm/test/MC/LoongArch/Relocations/fixups-diagnostics.s
index 0fa389953cec..7c027894dacc 100644
--- a/llvm/test/MC/LoongArch/Relocations/fixups-diagnostics.s
+++ b/llvm/test/MC/LoongArch/Relocations/fixups-diagnostics.s
@@ -1,29 +1,20 @@
# RUN: not llvm-mc --triple=loongarch64 --filetype=obj %s -o /dev/null 2>&1 | FileCheck %s
- beq $a0, $a1, far_distant # CHECK: :[[#@LINE]]:3: error: fixup value out of range
- bne $a0, $a1, unaligned # CHECK: :[[#@LINE]]:3: error: fixup value must be 4-byte aligned
-
- bnez $a0, unaligned # CHECK: :[[#@LINE]]:3: error: fixup value must be 4-byte aligned
- beqz $a0, far_distant_bz # CHECK: :[[#@LINE]]:3: error: fixup value out of range
-
+ beq $a0, $a1, unaligned # CHECK: :[[#@LINE]]:3: error: fixup value must be 4-byte aligned
+ beqz $a0, unaligned # CHECK: :[[#@LINE]]:3: error: fixup value must be 4-byte aligned
b unaligned # CHECK: :[[#@LINE]]:3: error: fixup value must be 4-byte aligned
-
.byte 0
unaligned:
.byte 0
.byte 0
.byte 0
- .space 1<<16
-distant:
+ beq $a0, $a1, out_of_range_b16 # CHECK: :[[#@LINE]]:3: error: fixup value out of range
.space 1<<18
-far_distant:
-
- .byte 0
-unaligned_bz:
- .byte 0
- .byte 0
- .byte 0
-distant_bz:
+out_of_range_b16:
+ beqz $a0, out_of_range_b21 # CHECK: :[[#@LINE]]:3: error: fixup value out of range
.space 1<<23
-far_distant_bz:
+out_of_range_b21:
+ b out_of_range_b26 # CHECK: :[[#@LINE]]:3: error: fixup value out of range
+ .space 1<<28
+out_of_range_b26:
More information about the llvm-commits
mailing list