Skip to content

Commit 660cb19

Browse files
committed
[X86] addConstantComments - merge (V)PMADDUBSW handling with all other mul opcode
These now all use the same asm printout code
1 parent f404517 commit 660cb19

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

llvm/lib/Target/X86/X86MCInstLower.cpp

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,21 +1954,7 @@ static void addConstantComments(const MachineInstr *MI,
19541954
INSTR_CASE(V, Instr, Z, kz)
19551955

19561956
// TODO: Add additional instructions when useful.
1957-
CASE_ARITH_RM(PMADDUBSW) {
1958-
unsigned SrcIdx = getSrcIdx(MI, 1);
1959-
if (auto *C = X86::getConstantFromPool(*MI, SrcIdx + 1)) {
1960-
std::string Comment;
1961-
raw_string_ostream CS(Comment);
1962-
unsigned VectorWidth =
1963-
X86::getVectorRegisterWidth(MI->getDesc().operands()[0]);
1964-
CS << "[";
1965-
printConstant(C, VectorWidth, CS);
1966-
CS << "]";
1967-
OutStreamer.AddComment(CS.str());
1968-
}
1969-
break;
1970-
}
1971-
1957+
CASE_ARITH_RM(PMADDUBSW)
19721958
CASE_ARITH_RM(PMADDWD)
19731959
CASE_ARITH_RM(PMULDQ)
19741960
CASE_ARITH_RM(PMULUDQ)

0 commit comments

Comments
 (0)