[llvm] [Mips] Add set directive support for EVA instructions (PR #225888)

Anand Mistry via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 11:51:03 PDT 2026


================
@@ -0,0 +1,9 @@
+# invalid operand for instructions that are invalid without -mattr=+eva flag
+#
+# RUN: llvm-mc %s -triple=mips64-unknown-linux -show-encoding -mcpu=mips32r6 2>%t1
+# RUN: llvm-mc %s -triple=mips64-unknown-linux -show-encoding -mcpu=mips64r6 2>%t1
+
+        .set noat
+        .set eva
+        tlbinv                         # CHECK: tlbinv                  # encoding: [0x42,0x00,0x00,0x03]
----------------
akmistry-msft wrote:

Because these instructions are part of the EVA ASE (🤦‍♂️ )

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


More information about the llvm-commits mailing list