[llvm] [SPARC][IAS] Make 64-bit instructions available in 32-bit mode on V9 (PR #187534)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 16:54:08 PDT 2026


koachan wrote:

> > > > Would something like "[...] to target V9 processors running in 32-bit mode" be better?
> > > 
> > > 
> > > Yeah, I guess... Just to clarify, 32-bit mode means --target=sparc? That, is 32-bit ABI?
> > 
> > 
> > Yup, the 32-bit ABI. The case in Linux kernel is of a file with inline asm code containing `srlx` and co., but is compiled with `-m32 -mcpu=v9 -mv8plus`. Without this patch the file fails to compile.
> 
> Does gcc compile it without `-mv8plus`? If yes, does it produce `srlx` or does it replace it with `srl`?

Yes, and it still produces `srlx`. `-m(no-)v8plus` only affects compiler-generated code, inline asm stuff stays intact.

https://github.com/llvm/llvm-project/pull/187534


More information about the llvm-commits mailing list