[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 09:12:56 PDT 2026
================
@@ -42,12 +42,15 @@ def : Pat<(i64 (sext i32:$val)), (SRAri $val, 0)>;
def : Pat<(i64 (and i64:$val, 0xffffffff)), (SRLri $val, 0)>;
def : Pat<(i64 (sext_inreg i64:$val, i32)), (SRAri $val, 0)>;
+} // Predicates = [Is64Bit]
+
+let Predicates = [HasV9] in {
----------------
koachan wrote:
Yes, yes, and no. As I said in the comments, combinations like e.g. `-mv8plus -mcpu=v8` is legal (but is useless).
`-mv8plus` by itself also doesn't imply usage of any particular ISA level, so no, HasV9 won't be set by it alone.
https://github.com/llvm/llvm-project/pull/187534
More information about the llvm-commits
mailing list