There’s been published a patch recently making FileCheck to catch misspelled directives:
https://reviews.llvm.org/D125604
Being as useful as large is the amount of misspelled directives discovered, some of the fixes, marked TODO, are not very trivial and likely require attention of corresponding teams and individuals:
clang/test/CodeGen/cmse-clear-return.c
llvm/test/CodeGen/AArch64/fp16-v8-instructions.ll
llvm/test/CodeGen/AArch64/neon-vmull-high-p64.ll
llvm/test/CodeGen/AMDGPU/phi-vgpr-input-moveimm.mir
llvm/test/CodeGen/MIR/AMDGPU/extra-reg-operand.mir
llvm/test/CodeGen/Thumb2/thumb2-execute-only-prologue.ll
llvm/test/CodeGen/WebAssembly/libcalls.ll
llvm/test/CodeGen/X86/GlobalISel/select-ext.mir
llvm/test/DebugInfo/X86/debug-info-template-parameter.ll
mlir/test/Conversion/MemRefToSPIRV/alloc.mlir
Will you have a chance, please take a look and let me know so we don’t duplicate efforts. Thanks!