Roger Sayle - [IA-64 PATCH] Support the bswapdi2 pattern (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Attachment:patchb.txt
Description: Text document

Attachment:builtin-bswap-1.c
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]