diff options
author | Ian Lance Taylor <iant@golang.org> | 2023-01-17 09:02:49 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2023-01-17 09:05:20 -0800 |
commit | 6d80690132a2f00fae1f619d4ffd950ce8cfdbc7 (patch) | |
tree | d82224bee436a1e3c42df1f9e5f748d9e206e36f /gcc/go | |
parent | 3b81f5c4d8e0d79cbd6927d004185707c14e54b2 (diff) | |
download | gcc-6d80690132a2f00fae1f619d4ffd950ce8cfdbc7.zip gcc-6d80690132a2f00fae1f619d4ffd950ce8cfdbc7.tar.gz gcc-6d80690132a2f00fae1f619d4ffd950ce8cfdbc7.tar.bz2 |
go: define two builtin functions used by middle-end
PR go/108426
* go-gcc.cc (Gcc_backend::Gcc_backend): Define __builtin_ctzl and
__builtin_clzl. Patch by Andrew Pinski.
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/go-gcc.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index a4a0e5d..07c34a5 100644 --- a/gcc/go/go-gcc.cc +++ b/gcc/go/go-gcc.cc @@ -627,6 +627,11 @@ Gcc_backend::Gcc_backend() unsigned_type_node, NULL_TREE), builtin_const); + this->define_builtin(BUILT_IN_CTZL, "__builtin_ctzl", "ctzl", + build_function_type_list(integer_type_node, + long_unsigned_type_node, + NULL_TREE), + builtin_const); this->define_builtin(BUILT_IN_CTZLL, "__builtin_ctzll", "ctzll", build_function_type_list(integer_type_node, long_long_unsigned_type_node, @@ -637,6 +642,11 @@ Gcc_backend::Gcc_backend() unsigned_type_node, NULL_TREE), builtin_const); + this->define_builtin(BUILT_IN_CLZL, "__builtin_clzl", "clzl", + build_function_type_list(integer_type_node, + long_unsigned_type_node, + NULL_TREE), + builtin_const); this->define_builtin(BUILT_IN_CLZLL, "__builtin_clzll", "clzll", build_function_type_list(integer_type_node, long_long_unsigned_type_node, |