[PATCH] D107278: [RISCV] Add new lga pseudoinstruction

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 17 11:14:57 PDT 2023


jrtc27 added inline comments.


================
Comment at: llvm/test/MC/RISCV/rvi-pseudos.s:48
+# CHECK:      .Lpcrel_hi7:
+# CHECK:      auipc a1, %got_pcrel_hi(another_symbol)
+# CHECK-RV32: lw    a1, %pcrel_lo(.Lpcrel_hi7)(a1)
----------------
MaskRay wrote:
> Add `-NEXT` for both `auipc` and `lw`/`ld`. It gives the user a hint that the instructions are contiguous. Also, in case of an failure, the FileCheck diagnostic will be more useful. 
Hm, I'd rather stick with the style of the existing checks... but you're right using -NEXT for all these would be better


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D107278



More information about the llvm-commits mailing list