[llvm] [RISCV][MC] Prioritize features in MultiMismatchFallback (PR #215737)

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 12:53:39 PDT 2026


================
@@ -17,13 +17,13 @@ sfence.w.inval 0x10 # CHECK: :[[@LINE]]:1: error: invalid instruction
 
 sfence.inval.ir 0x10 # CHECK: :[[@LINE]]:1: error: invalid instruction
 
-hfence.vvma zero, a1, a2 # CHECK: :[[@LINE]]:13: error: unexpected extra operand for instruction
+hfence.vvma zero, a1, a2 # CHECK: :[[@LINE]]:1: error: instruction requires the following: 'H' (Hypervisor)
----------------
arichardson wrote:

I had a similar change locally and I think it would be good if these tests actually enabled the features for the instructions being tested so we get the operand diagnostics rather than missing features.

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


More information about the llvm-commits mailing list