diff options
| author | gingerBill <bill@gingerbill.org> | 2023-04-27 11:31:05 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-04-27 11:31:05 +0100 |
| commit | 7df1cc075c11cc1e946045a61333b5432219849a (patch) | |
| tree | cbd941d41c4e2f2d4030fc3ec27c8f77d4be8b3e /src/llvm_backend_expr.cpp | |
| parent | b0f0a02d3c897c91350501fcf3d8c2f03886a82f (diff) | |
Fix #2487
Diffstat (limited to 'src/llvm_backend_expr.cpp')
| -rw-r--r-- | src/llvm_backend_expr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp index 028e90f51..72c8faf07 100644 --- a/src/llvm_backend_expr.cpp +++ b/src/llvm_backend_expr.cpp @@ -514,6 +514,9 @@ gb_internal bool lb_is_matrix_simdable(Type *t) { // it's not aligned well enough to use the vector instructions return false; } + if ((mt->Matrix.row_count & 1) ^ (mt->Matrix.column_count & 1)) { + return false; + } if (elem->kind == Type_Basic) { switch (elem->Basic.kind) { |