[PATCH] D153096: [MC] Fold A-B when A's fragment precedes B's fragment
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 22 11:50:10 PDT 2023
nickdesaulniers accepted this revision.
nickdesaulniers added a comment.
This revision is now accepted and ready to land.
Please fix the last indentation.
================
Comment at: llvm/test/MC/ARM/directive-if-subtraction.s:23
+// OBJ-NOT:[[@LINE-1]]:5: error: expected absolute expression
+// ASM:[[@LINE-2]]:5: error: expected absolute expression
+// DISASM: orr r1, r1, #2
----------------
MaskRay wrote:
> nickdesaulniers wrote:
> > I thought the whole point of this patch is to allow `9997b - . == 0` to fold? Then why is this testing for that to emit an error?
> This test complements the previous test that we still have `// ASM:[[@LINE-2]]:5: error: expected absolute expression`.
>
> This is related to a larger issue that for now we use `MCAsmStreamer::getAssemblerPtr` that returns null (related to D45164). I have found that improving this would be challenging.
I see; the run lines are super perplexing to me; changing the output type from obj (to whatever the implicit default is, another .s file perhaps?) causes the assembler to error? WEIRD
================
Comment at: llvm/test/MC/MachO/reloc-diff.s:4
_local_def:
+.p2align 2
.globl _external_def
----------------
nickdesaulniers wrote:
> indent
This was marked done but does not look fixed to me, please triple check. Later directives are indented. Please indent this one to be consistent.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153096/new/
https://reviews.llvm.org/D153096
More information about the llvm-commits
mailing list