llvm-project
llvm-project copied to clipboard
PPC Altivec - fatal error: error in backend: Do not know how to split this operator's operand!
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_'
@llvm/issue-subscribers-backend-powerpc
This is a duplicate of #55556.