Problem is exposed when using -fenable-matrix with either -ffat-lto-objects or -funified-lto and performing a full lto link step. The matrix-types-spec test from test-site is a good example of the failure.
WidenVectorResult #0: t132: v9f64,ch = llvm.matrix.column.major.load t639, TargetConstant:i64<211>, FrameIndex:i64<33>, Constant:i64<3>, TargetConstant:i1<0>, TargetConstant:i32<3>, TargetConstant:i
32<3>
LLVM ERROR: Do not know how to widen the result of this operator!
Problem is exposed when using `-fenable-matrix` with either `-ffat-lto-objects` or `-funified-lto` and performing a full lto link step. The `matrix-types-spec` test from test-site is a good example of the failure.
Eg for fat lto
```
clang++ -DNDEBUG -O3 -fomit-frame-pointer -flto -ffat-lto-objects -fenable-matrix -o SingleSource/UnitTests/CMakeFiles/matrix-types-spec.dir/matrix-types-spec.cpp.o -c <testsuite-path>/SingleSource/UnitTests/matrix-types-spec.cpp
clang++ -O3 -fomit-frame-pointer -flto -ffat-lto-objects -fno-split-lto-unit -DNDEBUG -fenable-matrix SingleSource/UnitTests/CMakeFiles/matrix-types-spec.dir/matrix-types-spec.cpp.o -o SingleSource/UnitTests/matrix-types-spec
```
Link step crashes with the following output:
```
WidenVectorResult #0: t132: v9f64,ch = llvm.matrix.column.major.load t639, TargetConstant:i64<211>, FrameIndex:i64<33>, Constant:i64<3>, TargetConstant:i1<0>, TargetConstant:i32<3>, TargetConstant:i
32<3>
LLVM ERROR: Do not know how to widen the result of this operator!
```
Problem is exposed when using
-fenable-matrix
with either-ffat-lto-objects
or-funified-lto
and performing a full lto link step. Thematrix-types-spec
test from test-site is a good example of the failure.Eg for fat lto
Link step crashes with the following output: