llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.11k stars 12.01k forks source link

clang fails with "fatal error: error in backend: Do not know how to split the result of this operator!" #19866

Closed llvmbot closed 2 years ago

llvmbot commented 10 years ago
Bugzilla Link 19492
Resolution FIXED
Resolved on Jun 21, 2014 07:57
Version 3.4
OS Linux
Attachments build.log, mpi-07d16c.c, mpi-07d16c.sh
Reporter LLVM Bugzilla Contributor
CC @d0k

Extended Description

clang fails during compilation of net-libs/rb_libtorrent-0.16.15 with "fatal error: error in backend: Do not know how to split the result of this operator!".

I use clang-3.4 installed on Gentoo (sys-devel/clang-3.4-r100).

Logs are attached.

d0k commented 2 years ago

mentioned in issue llvm/llvm-bugzilla-archive#20075

d0k commented 10 years ago

Fixed in r211435.

d0k commented 10 years ago

Bug llvm/llvm-bugzilla-archive#20075 has been marked as a duplicate of this bug.

d0k commented 10 years ago

Reduced IR testcase:

define <2 x i128> @​fast_s_mp_mul_high_digs(<2 x i128> %bin.rdx) { %rdx.shuf = shufflevector <2 x i128> %bin.rdx, <2 x i128> undef, <2 x i32> <i32 1, i32 undef> ret <2 x i128> %rdx.shuf }

crashes fed to llc with AVX enabled. Not sure where those <2 x i128> come from.

llvmbot commented 10 years ago

I've found a minimal set of flags that causes and error on my machine:

clang -I. -I../include -I/usr/include -O2 -march=native -c mpi.c -o mpi.o

-O2 toghether with -march=native