| Issue |
243696
|
| Summary |
[PowerPC] Compiler hang with O3 with BitInt
|
| Labels |
generated by fuzzer
|
| Assignees |
|
| Reporter |
hazohelet
|
Live Reproducer: https://godbolt.org/z/f9EovGPYG
Compiling the following C code for `powerpc64le` with `clang -O3` hangs and does not finish compilation.
```c
signed char f(int p) {
__int128 l = p;
for (unsigned i = 0; i < 2; i++)
for (unsigned j = 0; j < 64; j++)
l = (unsigned _BitInt(2))l ^ (unsigned _BitInt(2))((int)l & p);
return l;
}
```
clang command:
```sh
clang --target=powerpc64le-linux-gnu -O3 -c repro.c
```
The compiler does not terminate.
Notes:
* `-O2` compiles it at once, and so does `-O3` with `-mllvm -ppc-eliminate-zeroext=false`
* Also hangs with `-mcpu=power9` and `-mcpu=power10`, and for `powerpc64`
* Also hangs with clang 18.1.8, 21.1.8 and 23.1.2
* With 48 or 96 in place of 64, it compiles
clang version:
```text
clang version 24.0.0git (https://github.com/llvm/llvm-project 0c9e65d8f3d67c946058390eeec5d5a24125aaaf)
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs