Lu Weining af3bc0d762 [LoongArch][test] (6/6) Add encoding and mnemonics tests
With the benefit of D88392, instruction encoding and mnemonic testing can be
achieved within MIR files before AsmParser is ready. This patch adds such
tests which cover all basic integer instructions we defined in previous patch.
Similarly those tests will be rewrote by .s and moved to test/MC/LoongArch.

Differential revision: https://reviews.llvm.org/D115862
2022-02-10 10:23:34 +00:00

14 lines
397 B
INI

import os
config.suffixes = ['.ll', '.mir', '.test', '.txt']
extract_section_path = os.path.join(config.llvm_src_root,
'utils', 'extract-section.py')
config.substitutions.append(('extract-section',
"'%s' %s %s" % (config.python_executable,
extract_section_path, '--bits-endian little')))
if not 'LoongArch' in config.root.targets:
config.unsupported = True