OSDN Git Service

[PowerPC] Implemented Vector Load with Zero and Signed Extend Builtins
authorAlbion Fung <albionapc@gmail.com>
Fri, 28 Aug 2020 16:27:07 +0000 (11:27 -0500)
committerAlbion Fung <albionapc@gmail.com>
Fri, 28 Aug 2020 16:28:58 +0000 (11:28 -0500)
commit331dcc43eac28b8e659f928fd1f1ce7fd091e1e3
tree120dc0f44b7870bef5a2818a3eaed49d28af47ab
parentfabd4c1ae1fc573eb83ba9541e133a265c5549da
[PowerPC] Implemented Vector Load with Zero and Signed Extend Builtins

This patch implements the builtins for Vector Load with Zero and Signed Extend Builtins (lxvr_x for b, h, w, d), and adds the appropriate test cases for these builtins. The builtins utilize the vector load instructions itnroduced with ISA 3.1.

Differential Revision:  https://reviews.llvm.org/D82502#inline-797941
clang/lib/Headers/altivec.h
clang/test/CodeGen/builtins-ppc-p10vector.c
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
llvm/test/CodeGen/PowerPC/builtins-ppc-p10vsx.ll