[PowerPC][Power10] Fix the Test LSB by Byte (xvtlsbb) Builtins Implementation
authorAmy Kwan <amy.kwan1@ibm.com>
Wed, 22 Jul 2020 17:16:08 +0000 (12:16 -0500)
committerAmy Kwan <amy.kwan1@ibm.com>
Wed, 22 Jul 2020 18:27:05 +0000 (13:27 -0500)
commit08b4a50e39d8b8db17b8eddacba795e99304e418
tree4279c7381c3beb41b97fa58e26d1b09a174d850d
parent1c060aa988452508fcfc65357f4a6467f3f88cc1
[PowerPC][Power10] Fix the Test LSB by Byte (xvtlsbb) Builtins Implementation

The implementation of the xvtlsbb builtins/intrinsics were not correct as the
intrinsics previously used i1 as an argument type. This patch changes the i1
argument type used in these intrinsics to be i32 instead, as having the second
as an i1 can lead to issues in the backend.

Differential Revision: https://reviews.llvm.org/D84291
clang/include/clang/Basic/BuiltinsPPC.def
clang/test/CodeGen/builtins-ppc-p10vector.c
llvm/include/llvm/IR/IntrinsicsPowerPC.td
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
llvm/test/CodeGen/PowerPC/builtins-ppc-p10vsx.ll