[all-commits] [llvm/llvm-project] c4e574: [PowerPC] Implement low-order Vector Modulus Built...
Amy Kwan via All-commits
all-commits at lists.llvm.org
Fri Jul 31 09:16:08 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: c4e574323210feda1a3988e85fdd93b90a63d1b1
https://github.com/llvm/llvm-project/commit/c4e574323210feda1a3988e85fdd93b90a63d1b1
Author: Amy Kwan <amy.kwan1 at ibm.com>
Date: 2020-07-31 (Fri, 31 Jul 2020)
Changed paths:
M clang/lib/Headers/altivec.h
M clang/test/CodeGen/builtins-ppc-p10vector.c
Log Message:
-----------
[PowerPC] Implement low-order Vector Modulus Builtins, and add Vector Multiply/Divide/Modulus Builtins Tests
Power10 introduces new instructions for vector multiply, divide and modulus.
These instructions can be exploited by the builtin functions: vec_mul, vec_div,
and vec_mod, respectively.
This patch aims adds the function prototype, vec_mod, as vec_mul and vec_div
been previously implemented in altivec.h.
This patch also adds the following front end tests:
vec_mul for v2i64
vec_div for v4i32 and v2i64
vec_mod for v4i32 and v2i64
Differential Revision: https://reviews.llvm.org/D82576
More information about the All-commits
mailing list