[IA-64 PATCH] Support the bswapdi2 pattern
Roger Sayle
roger@eyesopen.com
Fri Feb 9 12:57:00 GMT 2007
The following simple patch adds backend support for the bswapdi2 pattern
on the IA-64, allowing efficient implementation of GCC's intrinsic
__builtin_bswap64. The "mux1 ... @rev" mnemonic is already available as a
vector shuffle operation on V8QI, this patch simply adds an equivalent
define_insn to provide the named pattern.
Tested on ia64-unknown-linux-gnu with a full "make bootstrap", all default
languages, and regression tested with a top-level "make -k check" with no
new failures.
Ok for mainline?
2007-02-09 Roger Sayle <roger@eyesopen.com>
* config/ia64/ia64.md (bswapdi2): New define_insn.
* gcc.target/ia64/builtin_bswap-1.c: New test case.
Roger
--
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patchb.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070209/65773cd7/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: builtin-bswap-1.c
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070209/65773cd7/attachment.c>
More information about the Gcc-patches
mailing list