Skip to content

Troubleshooting

Simon Moll edited this page Jan 16, 2018 · 1 revision

Issue Clang aborts with an error message as the one below on the vectorized IR:

SplitVectorResult #0: t72: v4f64 = llvm.x86.avx.cmp.pd.256 TargetConstant:i64<4434>, t64, t70, Constant:i8<1>
fatal error: error in backend: Do not know how to split the result of this operator!
clang-4.0: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 4.0.1 (tags/RELEASE_401/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix

Solution LLVM's backend needs to know which SIMD ISAs your target supports. Pass -march=native to Clang to enable all SIMD extensions of the host target. Individual SIMD ISAs can be enabled by passing the appropriate flags to Clang (eg. -mavx2, -mavx512f, ..).

Clone this wiki locally