llvm / llvm/llvm-project

Error: Do not know how to split the result of this operator

Open
#172,079 0 comments 0 reactions 0 assignees View on GitHub
new issue
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

When compiling upstream `sha2` crate in Rust with LLVM, I encountered this error which is reproducible with the latest version of llvm.

### Command to Reproduce
Artifact: [k.zip](https://github.com/user-attachments/files/24134450/k.zip)

```
llc k.ll -filetype=obj -o k.o
```

### Error
```
LLVM ERROR: Do not know how to split the result of this operator!
```

Contributor guide

Open the contributing guide

Research direction

Download the attached k.zip artifact and reproduce the failure with `llc k.ll -filetype=obj -o k.o` while compiling the upstream `sha2` crate with LLVM. Start by examining the generated k.ll and the LLVM compilation path that reports the result-splitting error; done means the reproducer compiles without this LLVM error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.