[llvm] [Mips] Fix compiler crash when returning fp128 after calling a functi… (PR #117525)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 27 19:21:08 PST 2024


yingopq wrote:

error message with debug:
```
Creating constant: t2: i64 = TargetConstant<0>
Creating new node: t3: ch,glue = callseq_start t0, TargetConstant:i64<0>, TargetConstant:i64<0>
Creating new node: t5: i64,ch = CopyFromReg t3, Register:i64 $sp_64
Creating new node: t8: ch,glue = MipsISD::JmpLink t3, TargetGlobalAddress:i64<ptr @bar> 0, RegisterMask:Untyped
Creating new node: t9: ch,glue = callseq_end t8, TargetConstant:i64<0>, TargetConstant:i64<0>, t8:1
Call result #2 has unhandled type i64
UNREACHABLE executed at /swecoproj/huangying/llvm/llvm/lib/CodeGen/CallingConvLower.cpp:172!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.	Program arguments: ./build/bin/llc -debug -mtriple=mips64el-linux-gnuabi64 -mcpu=mips64 -filetype=asm 1.ll
1.	Running pass 'Function Pass Manager' on module '1.ll'.
2.	Running pass 'MIPS DAG->DAG Pattern Instruction Selection' on function ['@foo](mailto:'@foo)'
```

https://github.com/llvm/llvm-project/pull/117525


More information about the llvm-commits mailing list