| Issue |
60990
|
| Summary |
[PowerPC] Crash during Running pass 'Prepare loop for ppc preferred instruction forms'
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
pkubaj
|
FreeBSD 13.2-BETA2, LLVM 15, 16 and 17 snapshots, powerpc (only 32-bit)
Reduced test:
```
class c;
class A {
void d(c &) const;
};
class e {
public:
int f();
unsigned char *i();
};
class c : public e {};
void A::d(c &j) const {
int a = j.f(), g = 1;
unsigned char *b = j.i();
for (;;) {
for (int h = 0; h < a; ++h)
b[++g] = 5;
b[g] = 0;
}
}
```
Compile with (builds with -O0):
`/usr/local/llvm15/bin/clang-15 -cc1 -triple powerpc-portbld-freebsd13.2 -emit-obj -O1 ThresholdShader-f6b32e.cpp`
Output:
```
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: /usr/local/llvm15/bin/clang-15 -cc1 -triple powerpc-portbld-freebsd13.2 -emit-obj -O1 ThresholdShader-f6b32e.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'ThresholdShader-f6b32e.cpp'.
4. Running pass 'Prepare loop for ppc preferred instruction forms' on function '@_ZNK1A1dER1c'
#0 0x000000081757de0c llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/llvm15/bin/../lib/libLLVM-15.so+0x341fe0c)
#1 0x000000081757e54c (/usr/local/llvm15/bin/../lib/libLLVM-15.so+0x342054c)
#2 0x000000081757b574 llvm::sys::RunSignalHandlers() (/usr/local/llvm15/bin/../lib/libLLVM-15.so+0x341d574)
#3 0x000000081757e9e0 (/usr/local/llvm15/bin/../lib/libLLVM-15.so+0x34209e0)
#4 0x00000008100f4410 handle_signal /usr/src/lib/libthr/thread/thr_sig.c:303:3
Segmentation fault (core dumped)
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs