Skip to content

Commit

Permalink
fix bug in printIntrinsicDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
tonitick committed Apr 27, 2024
1 parent a80a1b4 commit d7cb09d
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 @@ -4539,7 +4539,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 d7cb09d

Please sign in to comment.