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

Jiaxun Yang via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 11:49:40 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]
----------------
FlyGoat wrote:

Hmm, EVA instructions are things like `LWE`, `SWE`, not sure why we are testing against `tlbinv`..

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


More information about the llvm-commits mailing list