Roger Sayle - Re: [x86 PATCH] Provide bswapdi2 intrinisic on 32-bit IA-32 (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]

On Fri, 9 Feb 2007, Roger Sayle wrote:

2007-02-09 Roger Sayle roger@eyesopen.com

    * config/i386/i386.md (bswapdi2_rex): Renamed from bswapdi2.
    (bswapdi2): New define_expand to provide 32-bit implementation.

    * gcc.target/i386/builtin-bswap-3.c: New test case.

Grr. Operator error, sleep deprivation, new mail client... Here's the patch. Sorry for the inconvenience.

Index: config/i386/i386.md

*** config/i386/i386.md (revision 121726) --- config/i386/i386.md (working copy)


*** 14780,14786 **** [(set_attr "prefix_0f" "1") (set_attr "length" "2")])

! (define_insn "bswapdi2" [(set (match_operand:DI 0 "register_operand" "=r") (bswap:DI (match_operand:DI 1 "register_operand" "0"))) (clobber (reg:CC FLAGS_REG))] --- 14780,14786 ---- [(set_attr "prefix_0f" "1") (set_attr "length" "2")])

! (define_insn "bswapdi2_rex" [(set (match_operand:DI 0 "register_operand" "=r") (bswap:DI (match_operand:DI 1 "register_operand" "0"))) (clobber (reg:CC FLAGS_REG))]


*** 14789,14794 **** --- 14789,14813 ---- [(set_attr "prefix_0f" "1") (set_attr "length" "3")])

Roger


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