[llvm] draft: inline asm mode (PR #146215)
Andrew Pinski via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 6 11:25:14 PST 2025
pinskia wrote:
> > > I am not sure this works if someone uses `%=` correctly. That is:
> > > ...
> >
> >
> > Hmm - okay, good point. I'll see how easy it is to make the directive work with these templates/format strings.
>
> But @pinskia it says:
>
> > The compiler replaces tokens in the template that refer to inputs, outputs, and goto labels, and then outputs the resulting string to the assembler.
>
> ... this makes me think that the assembler wouldn't have a problem w/the post-compiler-emitted assembly.
I am saying in strict mode, the warning will be a false warning since the user was correctly using `%=` from the inline-asm.
That is with testcase, the assembler gets:
```
my_label1:
ldr x0, =Lmy_label1
```
Which should not be warned about even though it does not fit with the pattern matching of "local" numerical labels you have in this patch.
https://github.com/llvm/llvm-project/pull/146215
More information about the llvm-commits
mailing list