Skip to content
Snippets Groups Projects
Commit 74df9f5a authored by Nora Abi Akar's avatar Nora Abi Akar Committed by Benjamin Cumming
Browse files

pass correct index to simd procedure calls (#805)

Add missing check of whether to use direct or indirect indexing for simd procedure calls.

fixes #804
parent f9f34ccf
No related branches found
No related tags found
No related merge requests found
...@@ -567,7 +567,10 @@ void SimdPrinter::visit(AssignmentExpression* e) { ...@@ -567,7 +567,10 @@ void SimdPrinter::visit(AssignmentExpression* e) {
} }
void SimdPrinter::visit(CallExpression* e) { void SimdPrinter::visit(CallExpression* e) {
out_ << e->name() << "(index_"; if(is_indirect_index_)
out_ << e->name() << "(index_";
else
out_ << e->name() << "(i_";
for (auto& arg: e->args()) { for (auto& arg: e->args()) {
out_ << ", "; out_ << ", ";
arg->accept(this); arg->accept(this);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment