David Edelsohn - Re: [RS6000 PATCH] Implement bswapsi2 intrinsic (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]

As Andrew Pinski mentioned, I think a more complete patch is

something like the following. I tested that this produces the correct results for the testcases, but have not bootstrapped it yet.

David

David Edelsohn  <edelsohn@gnu.org>
Roger Sayle <roger@eyesopen.com>

* config/rs6000/rs6000.md (bswapsi2): New.

Index: rs6000.md

--- rs6000.md (revision 121912) +++ rs6000.md (working copy) @@ -2186,6 +2186,33 @@ DONE; })

+(define_insn "bswapsi2"


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