diff options
author | Antoni Boucher <bouanto@zoho.com> | 2023-01-03 15:04:41 -0500 |
---|---|---|
committer | Antoni Boucher <bouanto@zoho.com> | 2024-01-19 16:02:46 -0500 |
commit | 07b392550f37bd9bb146dcef3d110111fb3ad114 (patch) | |
tree | 1842ff75702cfac40fd3968641afcc89715d0ca8 /gcc/jit | |
parent | 63736351ec4d1e49261a483ea55e0f5ecfc591c8 (diff) | |
download | gcc-07b392550f37bd9bb146dcef3d110111fb3ad114.zip gcc-07b392550f37bd9bb146dcef3d110111fb3ad114.tar.gz gcc-07b392550f37bd9bb146dcef3d110111fb3ad114.tar.bz2 |
libgccjit: Add missing builtins needed by optimizations
gcc/jit/ChangeLog:
* jit-builtins.cc (ensure_optimization_builtins_exist): Add
popcount builtins.
gcc/testsuite/ChangeLog:
* jit.dg/all-non-failing-tests.h: New test.
* jit.dg/test-popcount.c: New test.
Diffstat (limited to 'gcc/jit')
-rw-r--r-- | gcc/jit/jit-builtins.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/jit/jit-builtins.cc b/gcc/jit/jit-builtins.cc index bf82887..e0bb247 100644 --- a/gcc/jit/jit-builtins.cc +++ b/gcc/jit/jit-builtins.cc @@ -609,6 +609,9 @@ builtins_manager::ensure_optimization_builtins_exist () We can't loop through all of the builtin_data array, we don't support all types yet. */ (void)get_builtin_function_by_id (BUILT_IN_TRAP); + (void)get_builtin_function_by_id (BUILT_IN_POPCOUNT); + (void)get_builtin_function_by_id (BUILT_IN_POPCOUNTL); + (void)get_builtin_function_by_id (BUILT_IN_POPCOUNTLL); } /* Playback support. */ |