diff options
author | Andrew Pinski <apinski@marvell.com> | 2021-09-02 07:08:22 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2021-09-13 15:19:05 +0000 |
commit | 03312cbd54f337dfb25be356a1d1abc9925c6c03 (patch) | |
tree | 88711fbf822c544cb5629a2d343e6a672bd89e28 /gcc/c-family/c-cppbuiltin.c | |
parent | 20f3c168205cc7b0a97ecd54ffc54bed7637be74 (diff) | |
download | gcc-03312cbd54f337dfb25be356a1d1abc9925c6c03.zip gcc-03312cbd54f337dfb25be356a1d1abc9925c6c03.tar.gz gcc-03312cbd54f337dfb25be356a1d1abc9925c6c03.tar.bz2 |
[aarch64] Fix target/95969: __builtin_aarch64_im_lane_boundsi interferes with gimple
This patch adds simple folding of __builtin_aarch64_im_lane_boundsi where
we are not going to error out. It fixes the problem by the removal
of the function from the IR.
OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions.
gcc/ChangeLog:
PR target/95969
* config/aarch64/aarch64-builtins.c (aarch64_fold_builtin_lane_check):
New function.
(aarch64_general_fold_builtin): Handle AARCH64_SIMD_BUILTIN_LANE_CHECK.
(aarch64_general_gimple_fold_builtin): Likewise.
gcc/testsuite/ChangeLog:
PR target/95969
* gcc.target/aarch64/lane-bound-1.c: New test.
* gcc.target/aarch64/lane-bound-2.c: New test.
Diffstat (limited to 'gcc/c-family/c-cppbuiltin.c')
0 files changed, 0 insertions, 0 deletions