[PATCH] D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 15 19:24:55 PDT 2023


MaskRay added inline comments.


================
Comment at: llvm/test/MC/AArch64/coff-relocations-branch26-bad.s:1
+// RUN: not llvm-mc -triple aarch64-unknown-windows-msvc -filetype obj %s -o /dev/null 2>&1 | FileCheck %s
+
----------------
In many occasions placing negative tests in the same file as the positive tests improves readability. You can use the `--defsym ERR=1` pattern


================
Comment at: llvm/test/MC/AArch64/coff-relocations-branch26-bad.s:18
+
+// CHECK: error: cannot perform a PC-relative fixup with a non-zero symbol offset
----------------
New tests are recommended to add line/column information to diagnostics, similar to `test/MC/ELF/cfi-scope-errors.s`


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155732/new/

https://reviews.llvm.org/D155732



More information about the llvm-commits mailing list