]> granicus.if.org Git - llvm/commit
[PPC] In PPCBoolRetToInt change the bool value to i64 if the target is ppc64
authorGuozhi Wei <carrot@google.com>
Thu, 8 Jun 2017 18:27:24 +0000 (18:27 +0000)
committerGuozhi Wei <carrot@google.com>
Thu, 8 Jun 2017 18:27:24 +0000 (18:27 +0000)
commitf2225868665d25f1b3021b5fce106c57cbcd919f
tree68b33030538993bbdf14800885cdf0e068e643d8
parentc5293f3fa4db8d781336ab072f3511bb6350ca69
[PPC] In PPCBoolRetToInt change the bool value to i64 if the target is ppc64

In PPCBoolRetToInt bool value is changed to i32 type. On ppc64 it may introduce an extra zero extension for the return value. This patch changes the integer type to i64 to avoid the zero extension on ppc64.

This patch fixed PR32442.

Differential Revision: https://reviews.llvm.org/D31407

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305001 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCBoolRetToInt.cpp
test/CodeGen/PowerPC/BoolRetToIntTest-2.ll [new file with mode: 0644]
test/CodeGen/PowerPC/BoolRetToIntTest.ll