diff options
author | Richard Guenther <rguenther@suse.de> | 2007-08-30 13:55:42 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-08-30 13:55:42 +0000 |
commit | a5ea943cb84931eaa0030ad49384d16d86a1d2b5 (patch) | |
tree | 624405eabf6cab524c22a25482d643632a4dddaa /gcc/doc | |
parent | e9f63ace2335dc9bf97cf853408d4070c11218af (diff) | |
download | gcc-a5ea943cb84931eaa0030ad49384d16d86a1d2b5.zip gcc-a5ea943cb84931eaa0030ad49384d16d86a1d2b5.tar.gz gcc-a5ea943cb84931eaa0030ad49384d16d86a1d2b5.tar.bz2 |
invoke.texi (-mveclibabi): Document new target option.
2007-08-30 Richard Guenther <rguenther@suse.de>
* doc/invoke.texi (-mveclibabi): Document new target option.
* config/i386/i386.opt (-mveclibabi): New target option.
* config/i386/i386.c (ix86_veclib_handler): Handler for
vectorization library support.
(override_options): Handle the -mveclibabi option, initialize
the vectorization library handler.
(ix86_builtin_vectorized_function): As fallback call the
vectorization library handler, if set.
(ix86_veclibabi_acml): New static function for ACML ABI style
vectorization support.
* gcc.target/i386/vectorize5.c: New testcase.
From-SVN: r127926
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 1c12d20..1646df3 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -557,7 +557,7 @@ Objective-C and Objective-C++ Dialects}. -mthreads -mno-align-stringops -minline-all-stringops @gol -mpush-args -maccumulate-outgoing-args -m128bit-long-double @gol -m96bit-long-double -mregparm=@var{num} -msseregparm @gol --mpc32 -mpc64 -mpc80 mstackrealign @gol +-mveclibabi=@var{type} -mpc32 -mpc64 -mpc80 -mstackrealign @gol -momit-leaf-frame-pointer -mno-red-zone -mno-tls-direct-seg-refs @gol -mcmodel=@var{code-model} @gol -m32 -m64 -mlarge-data-threshold=@var{num}} @@ -10440,6 +10440,19 @@ vectorized variants RCPPS and RSQRTPS) instead of DIVSS and SQRTSS (and their vectorized variants). These instructions will be generated only when @option{-funsafe-math-optimizations} is enabled. +@item -mveclibabi=@var{type} +@opindex mveclibabi +Specifies the ABI type to use for vectorizing intrinsics using an +external library. Supported types are @code{acml} for the AMD +math core library style of interfacing. GCC will currently emit +calls to @code{__vrd2_sin}, @code{__vrd2_cos}, @code{__vrd2_exp}, +@code{__vrd2_log}, @code{__vrd2_log2}, @code{__vrd2_log10}, +@code{__vrs4_sinf}, @code{__vrs4_cosf}, @code{__vrs4_expf}, +@code{__vrs4_logf}, @code{__vrs4_log2f}, @code{__vrs4_log10f} +and @code{__vrs4_powf} when using this type and @option{-ftree-vectorize} +is enabled. A ACML ABI compatible library will have to be specified +at link time. + @item -mpush-args @itemx -mno-push-args @opindex mpush-args |