Skip to content

Commit

Permalink
fix bug in printIntrinsicDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
tonitick authored and vtjnash committed Apr 28, 2024
1 parent 693075e commit 72075bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Target/CBackend/CBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4571,7 +4571,8 @@ void CWriter::printIntrinsicDefinition(FunctionType *funT, unsigned Opcode,
Out << " r;\n";

if (isa<VectorType>(retT)) {
for (i = 0; i < numParams; i++) {
char vectorSize = dyn_cast<VectorType>(retT)->getNumElements();
for (i = 0; i < vectorSize; i++) {
Out << " r.vector[" << (int)i << "] = " << OpName << "_devec(";
for (char j = 0; j < numParams; j++) {
Out << (char)('a' + j);
Expand Down

0 comments on commit 72075bd

Please sign in to comment.