aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorBill Seurer <seurer@linux.vnet.ibm.com>2016-06-07 20:18:09 +0000
committerBill Seurer <seurer@gcc.gnu.org>2016-06-07 20:18:09 +0000
commita23e6f1c59191c2c455650f04053c9c760fd07a5 (patch)
tree8e0cb3d373371dbec0b9123e50f43271387dd214 /gcc/predict.c
parentca51b2afc6bd5f4c484a183e5e7644db6f14607e (diff)
downloadgcc-a23e6f1c59191c2c455650f04053c9c760fd07a5.zip
gcc-a23e6f1c59191c2c455650f04053c9c760fd07a5.tar.gz
gcc-a23e6f1c59191c2c455650f04053c9c760fd07a5.tar.bz2
This patch adds support for the missing versions of the vec_mul altivec...
This patch adds support for the missing versions of the vec_mul altivec builtins from the Power Architecture 64-Bit ELF V2 ABI OpenPOWER ABI for Linux Supplement (16 July 2015 Version 1.1). There are many of the builtins that are missing and this is part of a series of patches to add them. There aren't instructions for the {un}signed char, {un}signed short, and {un}signed int versions of vec_mul so the output code is built from other built-ins and operations that do have instructions. The new test case is an executable test which verifies that the generated code produces expected values. C macros were used so that the same test case could be used for all the various supported types. Bootstrapped and tested on powerpc64le-unknown-linux-gnu and powerpc64-unknown-linux-gnu with no regressions. Is this ok for trunk? [gcc] 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com> * config/rs6000/altivec.h: Add __builtin_vec_mul. * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a special case Altivec builtin. * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove VSX_BUILTIN_VEC_MUL (replaced with special case code). * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add code for ALTIVEC_BUILTIN_VEC_MUL. * config/rs6000/rs6000.c (altivec_init_builtins): Add definition for __builtin_vec_mul. [gcc/testsuite] 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com> * gcc.target/powerpc/vec-mul.c: New test. From-SVN: r237183
Diffstat (limited to 'gcc/predict.c')
0 files changed, 0 insertions, 0 deletions