Function__builtin_signbit returns wrong value for type ppcf128 on big endian machines. This patch fixes how value is generated in that case, and generate correct value.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Just a few comment suggestions, but functionally LGTM.
lib/CodeGen/CGBuiltin.cpp | ||
---|---|---|
246 ↗ | (On Diff #38660) | Hmm, let's merge these the old and new comments a bit: We want the sign bit of the higher-order double. The bitcast we just |
252 ↗ | (On Diff #38660) | Typo: dobule. Also, we're not quite extracting the sign yet; we're truncating as a way to extract the higher-order double, which we'll extract the sign from in a second. |