Issue 239928
Summary [clang][CodeGen][PowerPC] Loading an `_Atomic long double` on ppc64le asserts in `AtomicInfo::ConvertToValueOrAtomic` (ppc_fp128 is not "IEEE-like")
Labels backend:PowerPC, clang:codegen, crash, generated by fuzzer
Assignees
Reporter YuanchengJiang
    The following code:
```c
long double test(_Atomic long double *addr) { return *addr; }
```

Resulted in this output:
```
clang: /root/llvm-project/llvm/tools/clang/lib/CodeGen/CGAtomic.cpp:1574: clang::CodeGen::RValue {anonymous}::AtomicInfo::ConvertToValueOrAtomic(llvm::Value*, clang::CodeGen::AggValueSlot, clang::SourceLocation, bool, bool) const: Assertion `(Val->getType()->isIntegerTy() || Val->getType()->isPointerTy() || Val->getType()->isIEEELikeFPTy()) && "Expected integer, pointer or floating point value when converting " "result."' failed.
```

Trunk reproducer (`-emit-llvm --target=powerpc64le-unknown-linux-gnu`): https://godbolt.org/z/EKxz7rT4e
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to