llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

PPC Altivec - fatal error: error in backend: Do not know how to split this operator's operand!

Open ltertan opened this issue 4 years ago • 2 comments

Testcase:

int a(vector int b, vector int c) { return __builtin_altivec_vcmpequw_p(2, b, c); }

Compile options:

--target=ppc32 -mcpu=a2 -maltivec -msoft-float

Error:

fatal error: error in backend: Do not know how to split this operator's operand!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /opt/compiler-explorer/clang-trunk/bin/clang++ -g -o /app/output.s -S -target powerpc64 -fcolor-diagnostics -fno-crash-diagnostics --target=ppc32 -O2 -mcpu=a2 -maltivec -msoft-float <source>
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '<source>'.
4.	Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@_Z1aDv4_iS_'

ltertan avatar May 18 '22 10:05 ltertan

@llvm/issue-subscribers-backend-powerpc

llvmbot avatar May 18 '22 13:05 llvmbot

This is a duplicate of #55556.

ltertan avatar May 20 '22 13:05 ltertan