]> granicus.if.org Git - clang/commit
Fix __builtin_signbit for ppcf128 type
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Fri, 6 Nov 2015 14:52:46 +0000 (14:52 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Fri, 6 Nov 2015 14:52:46 +0000 (14:52 +0000)
commitdb7ff082d2dbfb035d6ef21a107727ae61bf1e46
treeec4aca3f7599d32df786d6c6cd132a74a7677897
parent2defbb317972aee45b2bf096bf48284c98a00bca
Fix __builtin_signbit for ppcf128 type

Function__builtin_signbit returns wrong value for type ppcf128 on big endian
machines. This patch fixes how value is generated in that case.

Patch by Aleksandar Beserminji.

Differential Revision: http://reviews.llvm.org/D14149

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252307 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
test/Analysis/builtin_signbit.cpp [new file with mode: 0644]