diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-18 15:41:49 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-18 15:41:49 +0000 |
| commit | f41c91d36b4824606d7b4fe91607c3802fc55446 (patch) | |
| tree | 50177576935d68d1015d0bc79465f1cb210bd89f /src/llvm_backend_expr.cpp | |
| parent | 6909e0d7740c26ca5c50c8c6704758a245fa77ae (diff) | |
Fix #2274
Diffstat (limited to 'src/llvm_backend_expr.cpp')
| -rw-r--r-- | src/llvm_backend_expr.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/llvm_backend_expr.cpp b/src/llvm_backend_expr.cpp index 1fa4b4809..b1b1ad52a 100644 --- a/src/llvm_backend_expr.cpp +++ b/src/llvm_backend_expr.cpp @@ -509,6 +509,11 @@ gb_internal bool lb_is_matrix_simdable(Type *t) { case TargetArch_arm64: break; } + + if (type_align_of(t) < 16) { + // it's not aligned well enough to use the vector instructions + return false; + } if (elem->kind == Type_Basic) { switch (elem->Basic.kind) { |