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

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 09:46:44 PDT 2026


================
@@ -1,5 +1,8 @@
+! RUN: llvm-mc %s -triple=sparc -mcpu=v9 -show-encoding | FileCheck %s
 ! RUN: llvm-mc %s -triple=sparc64-unknown-linux-gnu -show-encoding | FileCheck %s
 
+!! 64-bit instructions should still work on 32-bit mode when CPU is set to V9.
----------------
s-barannikov wrote:

Or maybe `64-bit` is fine (emphasizing that not only those that existed in V8), but "should still work" is a little confusing.

So maybe instead:

```suggestion
!! All V9 instructions, including 64-bit ones, should be available in 32-bit mode if CPU is set to V9.
```

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


More information about the llvm-commits mailing list