From 02a275cca166546e32153997e4c800763ba7fc85 Mon Sep 17 00:00:00 2001 From: Shengchen Kan Date: Tue, 30 Jan 2024 20:37:30 +0800 Subject: [PATCH] [X86][CodeGen] Add entries for TB_BCAST_SH in getBroadcastOpcode --- llvm/lib/Target/X86/X86InstrInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 1adaf097bcbf7..99dba8d41ac88 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -8150,6 +8150,8 @@ static unsigned getBroadcastOpcode(const X86FoldTableEntry *I, VPBROADCASTDZrm) CASE_BCAST_TYPE_OPC(TB_BCAST_Q, VPBROADCASTQZ128rm, VPBROADCASTQZ256rm, VPBROADCASTQZrm) + CASE_BCAST_TYPE_OPC(TB_BCAST_SH, VPBROADCASTWZ128rm, VPBROADCASTWZ256rm, + VPBROADCASTWZrm) CASE_BCAST_TYPE_OPC(TB_BCAST_SS, VBROADCASTSSZ128rm, VBROADCASTSSZ256rm, VBROADCASTSSZrm) CASE_BCAST_TYPE_OPC(TB_BCAST_SD, VMOVDDUPZ128rm, VBROADCASTSDZ256rm,