From b77be0bd54685df284d5e66f8c54fb3b5437a0eb Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 22 Feb 2023 12:53:57 -0800 Subject: [PATCH] [RISCV] Be more explicit string replacements in RISCVInstrInfoVPseudos.td. NFC Instead of replacing "F16", "F32", "F64" anywhere in the string. Only replace them when proceeded by a "_", "_V", or "_W". This allows F16/F32/F64 to appear in the instruction name. This is needed for some vendor instructions in our downstream. We may be upstreaming them in the future. --- llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td index 9d763df..45ccbb7 100644 --- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td +++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td @@ -49,9 +49,15 @@ defvar TA_MA = 3; class PseudoToVInst { defvar AffixSubsts = [["Pseudo", ""], - ["F64", "F"], - ["F32", "F"], - ["F16", "F"], + ["_F64", "_F"], + ["_F32", "_F"], + ["_F16", "_F"], + ["_VF64", "_VF"], + ["_VF32", "_VF"], + ["_VF16", "_VF"], + ["_WF64", "_WF"], + ["_WF32", "_WF"], + ["_WF16", "_WF"], ["_TU", ""], ["_TIED", ""], ["_MASK", ""], -- 2.7.4