diff options
author | Richard Guenther <rguenth@gcc.gnu.org> | 2005-02-09 20:58:13 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2005-02-09 20:58:13 +0000 |
commit | 17684d462957afd5011d71db40e9a96c63225d2c (patch) | |
tree | 347cc9d98b8029f4811e05bd8d3f3df4c5a4ced7 /gcc/optabs.h | |
parent | 8ca3515fbe765aef349c8d6f848539bf11d3d6df (diff) | |
download | gcc-17684d462957afd5011d71db40e9a96c63225d2c.zip gcc-17684d462957afd5011d71db40e9a96c63225d2c.tar.gz gcc-17684d462957afd5011d71db40e9a96c63225d2c.tar.bz2 |
re PR middle-end/19402 (__builtin_powi? still missing)
2005-02-09 Richard Guenther <rguenth@gcc.gnu.org>
PR middle-end/19402
* builtins.def: New __builtin_powi[lf].
* builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
(expand_builtin_powi): New function.
(expand_builtin): Dispatch to expand_builtin_powi.
* libgcc2.h: Add prototypes for __builtin_powi[lf].
* libgcc2.c: Add __builtin_powi[lf] implementation.
* mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
* optabs.h: Add powi_optab.
* optabs.c (init_optabs): Initialize powi_optab.
* doc/extend.texi: Document __builtin_powi[lf].
* gcc.dg/pr19402-1.c: New testcase.
* gcc.dg/pr19402-2.c: likewise.
From-SVN: r94774
Diffstat (limited to 'gcc/optabs.h')
-rw-r--r-- | gcc/optabs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/optabs.h b/gcc/optabs.h index 613831a..621136b 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -235,6 +235,9 @@ enum optab_index /* Extract specified elements from vectors, for vector load. */ OTI_vec_realign_load, + /* Perform a raise to the power of integer. */ + OTI_powi, + OTI_MAX }; @@ -340,6 +343,8 @@ extern GTY(()) optab optab_table[OTI_MAX]; #define vec_init_optab (optab_table[OTI_vec_init]) #define vec_realign_load_optab (optab_table[OTI_vec_realign_load]) +#define powi_optab (optab_table[OTI_powi]) + /* Conversion optabs have their own table and indexes. */ enum convert_optab_index { |